Check retraction signature on person retraction
This commit is contained in:
parent
99c8869b8f
commit
22910ef4ce
1 changed files with 5 additions and 1 deletions
|
|
@ -143,7 +143,11 @@ class User
|
|||
Rails.logger.debug("Receiving object:\n#{object.inspect}")
|
||||
|
||||
if object.is_a? Retraction
|
||||
(object.type == 'Person' )? (unfriended_by friends.first(object.post_id)) : (object.perform self.id)
|
||||
if object.type == 'Person' && object.signature_valid?
|
||||
unfriended_by friends.first(object.post_id)
|
||||
else
|
||||
object.perform self.id
|
||||
end
|
||||
elsif object.is_a? Request
|
||||
person = Diaspora::Parser.get_or_create_person_object_from_xml( xml )
|
||||
person.serialized_key ||= object.exported_key
|
||||
|
|
|
|||
Loading…
Reference in a new issue