]> git.mxchange.org Git - friendica.git/blobdiff - include/Contact.php
Merge pull request #1703 from rabuzarus/readable_bytes
[friendica.git] / include / Contact.php
index 6777df65a1a963467b9df8f7cbc2ee54383faf69..103dbe9addf31df4adc1496edca59bd6995d762f 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']);
@@ -326,7 +330,8 @@ function get_contact($url, $uid = 0) {
 
                if (!$update_photo)
                        return($contactid);
-       }
+       } elseif ($uid != 0)
+               return 0;
 
        if (!count($data))
                $data = probe_url($url);