Fix JSON serialization of media_attachment (#4111)

pull/4117/head
unarist 2017-07-08 21:50:45 +09:00 committed by Eugen Rochko
parent 63b77f2320
commit 102466ac58
1 changed files with 1 additions and 1 deletions

View File

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