MS IZ unfriending maybe works

This commit is contained in:
ilya 2010-08-11 20:23:28 -07:00
parent 0d97c883cf
commit 352b9f65e0

View file

@ -124,7 +124,11 @@ class User
Rails.logger.debug("Receiving object:\n#{object.inspect}") Rails.logger.debug("Receiving object:\n#{object.inspect}")
if object.is_a? Retraction if object.is_a? Retraction
if object.type == 'Person'
unfriend object.person_id
else
object.perform self.id object.perform self.id
end
elsif object.is_a? Request elsif object.is_a? Request
person = Diaspora::Parser.get_or_create_person_object_from_xml( xml ) person = Diaspora::Parser.get_or_create_person_object_from_xml( xml )
person.serialized_key ||= object.exported_key person.serialized_key ||= object.exported_key