This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Fix JSON serialization of media_attachment (
#4111
)
pull/4/head
unarist
6 years ago
committed by
Eugen Rochko
parent
63b77f2320
commit
102466ac58
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/serializers/rest/media_attachment_serializer.rb
+ 1
- 1
app/serializers/rest/media_attachment_serializer.rb
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
Write
Preview
Loading…
Cancel
Save