about summary refs log tree commit diff
path: root/app/views/api/v1/statuses/_media.rabl
blob: 2f56c6d07d82cf74a347fd03ba3fedff8736e1cb (plain) (blame)
1
2
3
4
5
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 }