mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-05 02:36:29 +01: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) }
|