https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b55ae57
)
Partly restored functionality
author
Michael
<heluecht@pirati.ca>
Thu, 18 Mar 2021 15:56:50 +0000
(15:56 +0000)
committer
Michael
<heluecht@pirati.ca>
Thu, 18 Mar 2021 15:56:50 +0000
(15:56 +0000)
src/Worker/ExpireAndRemoveUsers.php
patch
|
blob
|
history
diff --git
a/src/Worker/ExpireAndRemoveUsers.php
b/src/Worker/ExpireAndRemoveUsers.php
index
949b7de
..
0941480
100644
(file)
--- a/
src/Worker/ExpireAndRemoveUsers.php
+++ b/
src/Worker/ExpireAndRemoveUsers.php
@@
-58,6
+58,12
@@
class ExpireAndRemoveUsers
Photo::delete(['uid' => $user['uid']]);
// Delete the contacts of this user
+ $self = DBA::selectFirst('contact', ['nurl'], ['self' => true, 'uid' => $user['uid']]);
+ if (DBA::isResult($self)) {
+ DBA::delete('contact', ['nurl' => $self['nurl'], 'self' => false]);
+ }
+
+ // Delete all contacts of this user
DBA::delete('contact', ['uid' => $user['uid']]);
// These tables contain the permissionset which will also be deleted when a user is deleted.