diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-05 20:38:31 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-05 20:38:31 +0200 |
commit | fc222dfa495a4a05dc1a216bfe4d6b079db4e320 (patch) | |
tree | 6838a1e93311c201543cf2447216ff645bbdaacb /app/views/api/statuses | |
parent | 14fb0ab4a2835b0af6f3f5480afa33c1ae992273 (diff) |
Displaying media attachments in timelines
Diffstat (limited to 'app/views/api/statuses')
-rw-r--r-- | app/views/api/statuses/show.rabl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/api/statuses/show.rabl b/app/views/api/statuses/show.rabl index 21e054453..c7d028e14 100644 --- a/app/views/api/statuses/show.rabl +++ b/app/views/api/statuses/show.rabl @@ -18,7 +18,7 @@ child :account do end child :media_attachments, object_root: false do - attribute :remote_url + attributes :id, :remote_url node(:url) { |media| full_asset_url(media.file.url) } node(:preview_url) { |media| full_asset_url(media.file.url(:small)) } |