mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-23 05:11:53 +01:00
Fix nil error for old toots that don't have a conversation (#4900)
This commit is contained in:
parent
881856553e
commit
4931eac280
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue