about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-05 18:57:59 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-05 18:57:59 +0200
commit1d9c886518ab389917ddf3f6c73daa31536d7fe9 (patch)
tree3d3bc62cf62eca1d741dcd78841471988a3039b8 /app/views
parenteec0dc46a6d6782f6aebdc759d4822ef17fd57a2 (diff)
Adding enclosures to Atom and statuses JSON
Diffstat (limited to 'app/views')
-rw-r--r--app/views/api/statuses/show.rabl4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/api/statuses/show.rabl b/app/views/api/statuses/show.rabl
index 0f4418870..b8cf075fe 100644
--- a/app/views/api/statuses/show.rabl
+++ b/app/views/api/statuses/show.rabl
@@ -16,3 +16,7 @@ end
 child :account do
   extends('api/accounts/show')
 end
+
+child :media_attachments do
+  node(:url) { |media| full_asset_url(media.file.url) }
+end