From 7bbaf0757f1549707787f8a5578e032d13c6c177 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 20 May 2019 16:33:09 -0400 Subject: [PATCH] Revert sending ActivityPub follow reject on Model\Contact::addRelationship failure --- src/Protocol/ActivityPub/Processor.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index 8280ccfb78..fd84f494e2 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -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']); }