]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/RemoveContact.php
Fix error / "about" is now converted to BBCode
[friendica.git] / src / Worker / RemoveContact.php
index 01388516bc5e199f041188c1869a23e87866cc7a..8f986eab11559c18630315429dd783910dfa9205 100644 (file)
@@ -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;