Displaying media attachments in timelines
This commit is contained in:
parent
14fb0ab4a2
commit
fc222dfa49
4 changed files with 37 additions and 2 deletions
|
@ -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)) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue