Issue 12876 again: Delete the public contact as well

This commit is contained in:
Michael 2023-03-31 03:37:48 +00:00
parent 6a8dac32b6
commit 9122eeda9b
1 changed files with 1 additions and 1 deletions

View File

@ -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 {