API returns mentions for statuses, compose form pre-fills all relevant usernames into the form when replying

This commit is contained in:
Eugen Rochko 2016-09-22 00:09:21 +02:00
parent 94525b596a
commit bc98865c1a
4 changed files with 21 additions and 17 deletions

View file

@ -20,6 +20,12 @@ end
child :media_attachments, object_root: false do
attributes :id, :remote_url, :type
node(:url) { |media| full_asset_url(media.file.url) }
node(:url) { |media| full_asset_url(media.file.url) }
node(:preview_url) { |media| full_asset_url(media.file.url(:small)) }
end
child :mentions, object_root: false do
node(:url) { |mention| TagManager.instance.url_for(mention.account) }
node(:acct) { |mention| mention.account.acct }
node(:id) { |mention| mention.account_id }
end