Parenthases

This commit is contained in:
Raphael 2010-08-26 14:42:16 -07:00
parent 73d8317534
commit 1ce34bc6fc

View file

@ -167,7 +167,7 @@ class User
object = Diaspora::Parser.from_xml(xml) object = Diaspora::Parser.from_xml(xml)
Rails.logger.debug("Receiving object:\n#{object.inspect}") Rails.logger.debug("Receiving object:\n#{object.inspect}")
Rails.logger.debug("From: #{object.person.inspect}") if object.person 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? 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.is_a? Retraction
if object.type == 'Person' && object.signature_valid? if object.type == 'Person' && object.signature_valid?