]> git.mxchange.org Git - friendica.git/commitdiff
Removing a contact request needn't to be one not approved requests
authorMichael <heluecht@pirati.ca>
Thu, 2 May 2019 20:04:15 +0000 (20:04 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 2 May 2019 20:04:15 +0000 (20:04 +0000)
src/Protocol/ActivityPub/Processor.php

index 475ccfc0b22048f66a4aa1b6b43c3b547a380530..2ebcbc0b8c927daecb8cfc37eae75408e3c14c32 100644 (file)
@@ -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 {