Fix JSON serialization of media_attachment (#4111)

This commit is contained in:
unarist authored and Eugen Rochko committed 2017-07-08 14:50:45 +02:00
1 parent 63b77f2320
commit 102466ac58
1 file changed
+1 -1
@@ -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