mirror of
https://github.com/mastodon/mastodon
synced 2024-12-29 05:58:12 +09:00
caf5b8e975
before. In the API, attachments now can be either image, video or gifv. Gifv is to be treated like images in terms of behaviour, but are videos by file type.
6 lines
216 B
Ruby
6 lines
216 B
Ruby
object @media
|
|
attribute :id, :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| medium_url(media) }
|