]> git.mxchange.org Git - friendica.git/commitdiff
Some small Diaspora changes
authorMichael Vogel <icarus@dabo.de>
Tue, 19 Apr 2016 05:39:17 +0000 (07:39 +0200)
committerMichael Vogel <icarus@dabo.de>
Tue, 19 Apr 2016 05:39:17 +0000 (07:39 +0200)
include/diaspora.php

index 1ceeef605e7aa25d0c8b79a13f7654627bbf6a4d..ce3d4ef00db1a817414fabff3a610cc51a4fd1cd 100644 (file)
@@ -1000,6 +1000,9 @@ class diaspora {
         * @return bool Success
         */
        private function receive_account_deletion($importer, $data) {
+
+               /// @todo Account deletion should remove the contact from the global contacts as well
+
                $author = notags(unxmlify($data->author));
 
                $contact = self::contact_by_handle($importer["uid"], $author);
@@ -2115,10 +2118,11 @@ class diaspora {
                        case "StatusMessage":
                                return self::item_retraction($importer, $contact, $data);;
 
+                       case "Contact":
                        case "Person":
                                /// @todo What should we do with an "unshare"?
                                // Removing the contact isn't correct since we still can read the public items
-                               //contact_remove($contact["id"]);
+                               contact_remove($contact["id"]);
                                return true;
 
                        default: