Fix limited_owned_parent_status?

This commit is contained in:
noellabo 2020-09-26 20:06:00 +09:00
parent d5cbd15a6c
commit a70fe3d8b2

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