X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FProtocol%2FActivityPub%2FProcessor.php;h=fd84f494e2d597f172269b64e5790d1a5e4c420a;hb=57f6086fcd42e97069ebdf2c81bd481db4f3e2c4;hp=8280ccfb78513d67372e2c53a024016b50a6eb42;hpb=ea77f214d7dd7206562b8d0687ed483bc1908ec9;p=friendica.git 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']); }