Fix JSON serialization of media_attachment (#4111)

th-downstream
unarist 7 years ago committed by Eugen Rochko
parent 01ee91b725
commit 89c8a81ef9

@ -15,7 +15,7 @@ class REST::MediaAttachmentSerializer < ActiveModel::Serializer
end
def text_url
medium_url(object.id)
object.local? ? medium_url(object) : nil
end
def meta

Loading…
Cancel
Save