From c3f3a239f4a4075f919c1f83829c9c9c3ddf849f Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 30 Mar 2015 22:22:11 +0200 Subject: [PATCH] Issue 1038: Send update to directory when account is removed. --- include/Contact.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/Contact.php b/include/Contact.php index 6777df65a1..6339360256 100644 --- a/include/Contact.php +++ b/include/Contact.php @@ -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']); -- 2.39.5