mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 11:35:29 +01:00
Add "meta" attribute to return of POST /api/v1/media method as well (#3333)
This commit is contained in:
parent
c48772fd3f
commit
9ea4f37e78
@ -1,5 +1,7 @@
|
|||||||
object @media
|
object @media
|
||||||
attribute :id, :type
|
attribute :id, :type
|
||||||
node(:url) { |media| full_asset_url(media.file.url(:original)) }
|
|
||||||
|
node(:url) { |media| full_asset_url(media.file.url(:original)) }
|
||||||
node(:preview_url) { |media| full_asset_url(media.file.url(:small)) }
|
node(:preview_url) { |media| full_asset_url(media.file.url(:small)) }
|
||||||
node(:text_url) { |media| medium_url(media) }
|
node(:text_url) { |media| medium_url(media) }
|
||||||
|
node(:meta) { |media| media.file.meta }
|
||||||
|
@ -3,4 +3,4 @@ attributes :id, :remote_url, :type
|
|||||||
node(:url) { |media| full_asset_url(media.file.url(:original)) }
|
node(:url) { |media| full_asset_url(media.file.url(:original)) }
|
||||||
node(:preview_url) { |media| full_asset_url(media.file.url(:small)) }
|
node(:preview_url) { |media| full_asset_url(media.file.url(:small)) }
|
||||||
node(:text_url) { |media| media.local? ? medium_url(media) : nil }
|
node(:text_url) { |media| media.local? ? medium_url(media) : nil }
|
||||||
node(:meta) { |media| media.file.meta }
|
node(:meta) { |media| media.file.meta }
|
||||||
|
Loading…
Reference in New Issue
Block a user