mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 18:13:42 +01:00
Fix JSON serialization of media_attachment (#4111)
This commit is contained in:
parent
63b77f2320
commit
102466ac58
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue