Fix JSON serialization of media_attachment (#4111)
parent
63b77f2320
commit
102466ac58
|
@ -15,7 +15,7 @@ class REST::MediaAttachmentSerializer < ActiveModel::Serializer
|
||||||
end
|
end
|
||||||
|
|
||||||
def text_url
|
def text_url
|
||||||
medium_url(object.id)
|
object.local? ? medium_url(object) : nil
|
||||||
end
|
end
|
||||||
|
|
||||||
def meta
|
def meta
|
||||||
|
|
Reference in New Issue