Browse Source

Fix nil error for old toots that don't have a conversation (#4900)

theme_witches
Eugen Rochko 5 years ago committed by GitHub
parent
commit
4931eac280
  1. 2
      app/serializers/activitypub/note_serializer.rb

2
app/serializers/activitypub/note_serializer.rb

@ -73,6 +73,8 @@ class ActivityPub::NoteSerializer < ActiveModel::Serializer @@ -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

Loading…
Cancel
Save