Fix limited_owned_parent_status?

This commit is contained in:
noellabo 2020-09-26 20:06:00 +09:00
parent 56f1f13683
commit ec77641009

View file

@ -84,7 +84,7 @@ class REST::StatusSerializer < ActiveModel::Serializer
end
def limited_owned_parent_status?
object.limited_visibility? && owned_status? && (!object.reply? || object.thread.conversation_id != object.conversation_id)
object.limited_visibility? && owned_status? && (!object.reply? || object.thread&.conversation_id != object.conversation_id)
end
def circle_id