Also set object.person
This commit is contained in:
parent
40957b5370
commit
c3e199a00a
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue