aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTobias Diekershoff <tobias.diekershoff@gmx.net>2012-03-22 13:38:59 +0100
committerTobias Diekershoff <tobias.diekershoff@gmx.net>2012-03-22 13:38:59 +0100
commit19eaed60d57e0db936b4161d1976243cb322efc2 (patch)
treea18c18c4dca31c38f9b22df535833dbbf1b392b2 /include
parent5f7715529d147510c66d0bf68edcca09e7fe3f1b (diff)
parent808180ce5f9471aa36faf8861fb84d04b412f412 (diff)
downloadvolse-hubzilla-19eaed60d57e0db936b4161d1976243cb322efc2.tar.gz
volse-hubzilla-19eaed60d57e0db936b4161d1976243cb322efc2.tar.bz2
volse-hubzilla-19eaed60d57e0db936b4161d1976243cb322efc2.zip
Merge branch 'master' of https://github.com/friendica/friendica
Diffstat (limited to 'include')
-rwxr-xr-xinclude/Contact.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/Contact.php b/include/Contact.php
index baccea305..d9949b1ef 100755
--- a/include/Contact.php
+++ b/include/Contact.php
@@ -15,6 +15,12 @@ function user_remove($uid) {
call_hooks('remove_user',$r[0]);
+ // save username (actually the nickname as it is guaranteed
+ // unique), so it cannot be re-registered in the future.
+
+ q("insert into userd ( username ) values ( '%s' )",
+ $r[0]['nickname']
+ );
q("DELETE FROM `contact` WHERE `uid` = %d", intval($uid));
q("DELETE FROM `group` WHERE `uid` = %d", intval($uid));