]> git.mxchange.org Git - friendica.git/commitdiff
Restrict the access for servers that the user ignored
authorMichael <heluecht@pirati.ca>
Tue, 26 Dec 2023 08:32:17 +0000 (08:32 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 26 Dec 2023 08:32:17 +0000 (08:32 +0000)
src/Protocol/ActivityPub.php

index 09464a13c29c1d26ea7c9ac61ce130a0554c8299..7396f29211ebc01586ae77ee2376ef398d8c98f9 100644 (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]);