From 1d9c886518ab389917ddf3f6c73daa31536d7fe9 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 5 Sep 2016 18:57:59 +0200 Subject: Adding enclosures to Atom and statuses JSON --- app/views/api/statuses/show.rabl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/views/api/statuses/show.rabl') 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 -- cgit