mirror of
https://github.com/friendica/friendica
synced 2025-04-27 08:30:10 +00:00
Ensure that deleted contacts are really removed
This commit is contained in:
parent
a5895f8623
commit
0225e99d0a
2 changed files with 16 additions and 2 deletions
|
@ -13,8 +13,7 @@ class RemoveContact {
|
|||
public static function execute($id) {
|
||||
|
||||
// Only delete if the contact is to be deleted
|
||||
$condition = ['network' => Protocol::PHANTOM, 'id' => $id];
|
||||
$contact = DBA::selectFirst('contact', ['uid'], $condition);
|
||||
$contact = DBA::selectFirst('contact', ['uid'], ['deleted' => true]);
|
||||
if (!DBA::isResult($contact)) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue