Fix JSON serialization of media_attachment (#4111)

master
unarist 8 years ago committed by Eugen Rochko
parent 63b77f2320
commit 102466ac58
  1. 2
      app/serializers/rest/media_attachment_serializer.rb

@ -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