provide latest ipfs hash for api

This commit is contained in:
Kyle Drake 2016-04-06 20:51:54 -07:00
parent 4d223e356e
commit 02ecd19f58
2 changed files with 10 additions and 1 deletions

View file

@ -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