diff --git a/app/models/user.rb b/app/models/user.rb index 2594065a1..c12730dba 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -167,7 +167,7 @@ class User object = Diaspora::Parser.from_xml(xml) Rails.logger.debug("Receiving object:\n#{object.inspect}") Rails.logger.debug("From: #{object.person.inspect}") if object.person - object.person.save if object.is_a? Comment && Person.find_by_id(object.person_id).nil? + object.person.save if object.is_a?(Comment) && Person.find_by_id(object.person_id).nil? raise "In receive for #{self.real_name}, signature was not valid on: #{object.inspect}" unless object.signature_valid? if object.is_a? Retraction if object.type == 'Person' && object.signature_valid?