raise"Signature was not valid on: #{object.inspect}"unlessobject.signature_valid?
raise"In receive for #{self.real_name}, signature was not valid on: #{object.inspect}"unlessobject.signature_valid?
ifobject.is_a?Retraction
ifobject.is_a?Retraction
ifobject.type=='Person'&&object.signature_valid?
ifobject.type=='Person'&&object.signature_valid?
...
@@ -195,7 +195,7 @@ class User
...
@@ -195,7 +195,7 @@ class User
person.save
person.save
elsifobject.is_a?(Comment)
elsifobject.is_a?(Comment)
raise"Signature was not valid on: #{object.inspect}"unlessobject.post.person==self||object.verify_post_creator_signature
raise"In receive for #{self.real_name}, signature was not valid on: #{object.inspect}"unlessobject.post.person==self||object.verify_post_creator_signature