MS IZ unfriending maybe works
This commit is contained in:
parent
0d97c883cf
commit
352b9f65e0
1 changed files with 5 additions and 1 deletions
|
|
@ -124,7 +124,11 @@ class User
|
|||
Rails.logger.debug("Receiving object:\n#{object.inspect}")
|
||||
|
||||
if object.is_a? Retraction
|
||||
object.perform self.id
|
||||
if object.type == 'Person'
|
||||
unfriend object.person_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