about summary refs log tree commit diff
path: root/app/views/api/v1/statuses/_media.rabl
blob: 07ac31888db1431e30b7931fa4b3e3f90077d256 (plain) (blame)
1
2
3
4
5
6
attributes :id, :remote_url, :type

node(:url)         { |media| full_asset_url(media.file.url(:original)) }
node(:preview_url) { |media| full_asset_url(media.file.url(:small)) }
node(:text_url)    { |media| media.local? ? medium_url(media) : nil }
node(:meta)        { |media| media.file.meta }