about summary refs log tree commit diff
path: root/app/views/api
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-05 20:38:31 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-05 20:38:31 +0200
commitfc222dfa495a4a05dc1a216bfe4d6b079db4e320 (patch)
tree6838a1e93311c201543cf2447216ff645bbdaacb /app/views/api
parent14fb0ab4a2835b0af6f3f5480afa33c1ae992273 (diff)
Displaying media attachments in timelines
Diffstat (limited to 'app/views/api')
-rw-r--r--app/views/api/statuses/show.rabl2
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)) }