From 9122eeda9bcc7afcfa7986e05044b49064b33c0a Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 31 Mar 2023 03:37:48 +0000 Subject: [PATCH] Issue 12876 again: Delete the public contact as well --- src/Worker/ExpireAndRemoveUsers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Worker/ExpireAndRemoveUsers.php b/src/Worker/ExpireAndRemoveUsers.php index f7591bf4a..f29934596 100644 --- a/src/Worker/ExpireAndRemoveUsers.php +++ b/src/Worker/ExpireAndRemoveUsers.php @@ -98,7 +98,7 @@ class ExpireAndRemoveUsers // Delete the contacts of this user $self = DBA::selectFirst('contact', ['nurl'], ['self' => true, 'uid' => $user['uid']]); if (DBA::isResult($self)) { - $result = DBA::delete('contact', ["`nurl` = ? AND NOT `self` AND `uid` != ?", $self['nurl'], 0]); + $result = DBA::delete('contact', ['nurl' => $self['nurl'], 'self' => false]); if ($result) { Logger::debug('Deleted the user contact for other users', ['result' => $result, 'rows' => DBA::affectedRows()]); } else {