From cb816bde6688cdedaa5d06ec3b8197a94a5913e6 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 26 Dec 2023 08:32:17 +0000 Subject: [PATCH] Restrict the access for servers that the user ignored --- src/Protocol/ActivityPub.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]); -- 2.39.5