Skip to content
Snippets Groups Projects
Commit 4931eac2 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

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

parent 88185655
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment