]> git.mxchange.org Git - friendica.git/commitdiff
Revert sending ActivityPub follow reject on Model\Contact::addRelationship failure
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 20 May 2019 20:33:09 +0000 (16:33 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 20 May 2019 20:33:09 +0000 (16:33 -0400)
src/Protocol/ActivityPub/Processor.php

index 8280ccfb78513d67372e2c53a024016b50a6eb42..fd84f494e2d597f172269b64e5790d1a5e4c420a 100644 (file)
@@ -542,10 +542,7 @@ class Processor
                self::switchContact($item['author-id']);
 
                $result = Contact::addRelationship($owner, $contact, $item, false, $note);
-               if ($result === false) {
-                       ActivityPub\Transmitter::sendContactReject($item['author-link'], $item['author-id'], $owner['uid']);
-                       return;
-               }elseif ($result === true) {
+               if ($result === true) {
                        ActivityPub\Transmitter::sendContactAccept($item['author-link'], $item['author-id'], $owner['uid']);
                }