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

remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
Eugen Rochko 2017-09-12 00:57:18 +02:00 committed by GitHub
parent 881856553e
commit 4931eac280
1 changed files with 2 additions and 0 deletions

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