Skip to content
Snippets Groups Projects
Commit 9ea4f37e authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Add "meta" attribute to return of POST /api/v1/media method as well (#3333)

parent c48772fd
No related branches found
No related tags found
No related merge requests found
object @media
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(: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(: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 }
\ No newline at end of file
node(:meta) { |media| media.file.meta }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment