X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FRemoveContact.php;h=8f986eab11559c18630315429dd783910dfa9205;hb=de8787dd5bb9fadd6388c050bad35ec4c0332e08;hp=01388516bc5e199f041188c1869a23e87866cc7a;hpb=29aa90ec097ee42ff0b2265eb763731b99088cb3;p=friendica.git diff --git a/src/Worker/RemoveContact.php b/src/Worker/RemoveContact.php index 01388516bc..8f986eab11 100644 --- a/src/Worker/RemoveContact.php +++ b/src/Worker/RemoveContact.php @@ -6,14 +6,15 @@ namespace Friendica\Worker; use Friendica\Database\DBA; +use Friendica\Core\Protocol; require_once 'include/dba.php'; class RemoveContact { public static function execute($id) { - // Only delete if the contact is archived - $condition = ['archive' => true, 'network' => Protocol::PHANTOM, 'id' => $id]; + // Only delete if the contact is to be deleted + $condition = ['network' => Protocol::PHANTOM, 'id' => $id]; $r = DBA::exists('contact', $condition); if (!DBA::isResult($r)) { return;