From: Michael Date: Tue, 26 Dec 2023 08:32:17 +0000 (+0000) Subject: Restrict the access for servers that the user ignored X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cb816bde6688cdedaa5d06ec3b8197a94a5913e6;p=friendica.git Restrict the access for servers that the user ignored --- diff --git a/src/Protocol/ActivityPub.php b/src/Protocol/ActivityPub.php index 09464a13c2..7396f29211 100644 --- a/src/Protocol/ActivityPub.php +++ b/src/Protocol/ActivityPub.php @@ -315,7 +315,9 @@ class ActivityPub } } - // @todo Look for user blocked domains + if (DI::userGServer()->isIgnoredByUser($uid, $apcontact['gsid'])) { + return false; + } Logger::debug('Server is an accepted requester', ['uid' => $uid, 'id' => $apcontact['gsid'], 'url' => $apcontact['baseurl'], 'signer' => $signer, 'called_by' => $called_by]);