logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 102466ac5842b20f32a9c5e2fa3f35414c34574b
parent: 63b77f23202a6dece419e2eb7180395b2e276b09
Author: unarist <m.unarist@gmail.com>
Date:   Sat,  8 Jul 2017 21:50:45 +0900

Fix JSON serialization of media_attachment (#4111)


Diffstat:

Mapp/serializers/rest/media_attachment_serializer.rb2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/serializers/rest/media_attachment_serializer.rb b/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