]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/ActivityPub/Processor.php
Revert sending ActivityPub follow reject on Model\Contact::addRelationship failure
[friendica.git] / 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']);
                }