]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #1458 from annando/issue-1038
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 31 Mar 2015 05:35:12 +0000 (07:35 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 31 Mar 2015 05:35:12 +0000 (07:35 +0200)
Issue 1038:  Send update to directory when account is removed

include/Contact.php

index 6777df65a1a963467b9df8f7cbc2ee54383faf69..63393602567b291ea1209f9381b0ff5684d145ab 100644 (file)
@@ -46,6 +46,10 @@ function user_remove($uid) {
        // q("DELETE FROM `user` WHERE `uid` = %d", intval($uid));
        q("UPDATE `user` SET `account_removed` = 1, `account_expires_on` = UTC_TIMESTAMP() WHERE `uid` = %d", intval($uid));
        proc_run('php', "include/notifier.php", "removeme", $uid);
+
+       // Send an update to the directory
+       proc_run('php', "include/directory.php", $r[0]['url']);
+
        if($uid == local_user()) {
                unset($_SESSION['authenticated']);
                unset($_SESSION['uid']);