mirror of
https://github.com/friendica/friendica
synced 2024-11-18 09:43:40 +00:00
Merge pull request #12962 from annando/issue-12876c
Issue 12876 again: Delete the public contact as well
This commit is contained in:
commit
d200503381
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ class ExpireAndRemoveUsers
|
||||||
// Delete the contacts of this user
|
// Delete the contacts of this user
|
||||||
$self = DBA::selectFirst('contact', ['nurl'], ['self' => true, 'uid' => $user['uid']]);
|
$self = DBA::selectFirst('contact', ['nurl'], ['self' => true, 'uid' => $user['uid']]);
|
||||||
if (DBA::isResult($self)) {
|
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) {
|
if ($result) {
|
||||||
Logger::debug('Deleted the user contact for other users', ['result' => $result, 'rows' => DBA::affectedRows()]);
|
Logger::debug('Deleted the user contact for other users', ['result' => $result, 'rows' => DBA::affectedRows()]);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue