Merge pull request #13770 from annando/restrict-for-ignored

Restrict the access for servers that the user ignored
This commit is contained in:
Hypolite Petovan 2023-12-26 19:11:34 -05:00 committed by GitHub
commit f4fddb2921
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]);