Revert sending ActivityPub follow reject on Model\Contact::addRelationship failure
This commit is contained in:
parent
62dfcbb074
commit
7bbaf0757f
1 changed files with 1 additions and 4 deletions
|
@ -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']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue