Also set object.person

This commit is contained in:
Raphael 2010-08-26 15:09:54 -07:00
parent 40957b5370
commit c3e199a00a

View file

@ -195,7 +195,9 @@ class User
person.save
elsif object.is_a?(Comment)
Diaspora::Parser.parse_or_find_person_from_xml( xml ).save if object.person.nil?
object.person = Diaspora::Parser.parse_or_find_person_from_xml( xml ).save if object.person.nil?
object.person.save
Rails.logger.debug("From: #{object.person.inspect}") if object.person
raise "In receive for #{self.real_name}, signature was not valid on: #{object.inspect}" unless object.post.person == self.person || object.verify_post_creator_signature
object.save
dispatch_comment object unless owns?(object)