From: Hypolite Petovan Date: Mon, 20 May 2019 20:33:09 +0000 (-0400) Subject: Revert sending ActivityPub follow reject on Model\Contact::addRelationship failure X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7bbaf0757f1549707787f8a5578e032d13c6c177;p=friendica.git Revert sending ActivityPub follow reject on Model\Contact::addRelationship failure --- 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']); }