mirror of
https://github.com/neocities/neocities.git
synced 2025-06-19 10:50:34 +02:00
provide latest ipfs hash for api
This commit is contained in:
parent
4d223e356e
commit
02ecd19f58
2 changed files with 10 additions and 1 deletions
|
@ -119,7 +119,8 @@ def api_info_for(site)
|
|||
created_at: site.created_at.rfc2822,
|
||||
last_updated: site.site_updated_at ? site.site_updated_at.rfc2822 : nil,
|
||||
domain: site.domain,
|
||||
tags: site.tags.collect {|t| t.name}
|
||||
tags: site.tags.collect {|t| t.name},
|
||||
latest_ipfs_hash: site.latest_archive ? site.latest_archive.ipfs_hash : nil
|
||||
}
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue