Revert sending ActivityPub follow reject on Model\Contact::addRelationship failure

This commit is contained in:
Hypolite Petovan 2019-05-20 16:33:09 -04:00
parent 62dfcbb074
commit 7bbaf0757f

View file

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