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 nil error for old toots that don't have a conversation (
#4900
)
pull/4/head
Eugen Rochko
6 years ago
committed by
GitHub
parent
881856553e
commit
4931eac280
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
app/serializers/activitypub/note_serializer.rb
+ 2
- 0
app/serializers/activitypub/note_serializer.rb
View File
@ -73,6 +73,8 @@ class ActivityPub::NoteSerializer < ActiveModel::Serializer
end
def
conversation
return
if
object
.
conversation
.
nil?
if
object
.
conversation
.
uri?
object
.
conversation
.
uri
else
Write
Preview
Loading…
Cancel
Save