From: Michael Date: Thu, 2 May 2019 20:04:15 +0000 (+0000) Subject: Removing a contact request needn't to be one not approved requests X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9941c331239df1e89e11ef6336f74d1561f0763e;p=friendica.git Removing a contact request needn't to be one not approved requests --- diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index 475ccfc0b2..2ebcbc0b8c 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -578,7 +578,7 @@ class Processor self::switchContact($cid); - if (DBA::exists('contact', ['id' => $cid, 'rel' => Contact::SHARING, 'pending' => true])) { + if (DBA::exists('contact', ['id' => $cid, 'rel' => Contact::SHARING])) { Contact::remove($cid); Logger::log('Rejected contact request from contact ' . $cid . ' for user ' . $uid . ' - contact had been removed.', Logger::DEBUG); } else {