Fix nil error for old toots that don't have a conversation (#4900)
This commit is contained in:
parent
f221fea176
commit
e46f2d995f
1 changed files with 2 additions and 0 deletions
|
@ -73,6 +73,8 @@ class ActivityPub::NoteSerializer < ActiveModel::Serializer
|
||||||
end
|
end
|
||||||
|
|
||||||
def conversation
|
def conversation
|
||||||
|
return if object.conversation.nil?
|
||||||
|
|
||||||
if object.conversation.uri?
|
if object.conversation.uri?
|
||||||
object.conversation.uri
|
object.conversation.uri
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue