RS, IZ, check against self.person, not self in user receive

This commit is contained in:
Raphael 2010-08-26 11:48:34 -07:00
parent 9f11a474d8
commit c3fe3bf443

View file

@ -195,7 +195,7 @@ class User
person.save
elsif object.is_a?(Comment)
raise "In receive for #{self.real_name}, signature was not valid on: #{object.inspect}" unless object.post.person == self || object.verify_post_creator_signature
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)
object.socket_to_uid(id) if (object.respond_to?(:socket_to_uid) && !self.owns?(object))