RS, IZ, check against self.person, not self in user receive
This commit is contained in:
parent
9f11a474d8
commit
c3fe3bf443
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue