Displaying media attachments in timelines

This commit is contained in:
Eugen Rochko
2016-09-05 20:38:31 +02:00
parent 14fb0ab4a2
commit fc222dfa49
4 changed files with 37 additions and 2 deletions

View File

@ -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)) }