Explorar o código

Update Inbox, add user domain blocks to Accept handler

Daniel Supernault hai 1 ano
pai
achega
3fbf8f159e
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      app/Util/ActivityPub/Inbox.php

+ 4 - 0
app/Util/ActivityPub/Inbox.php

@@ -646,6 +646,10 @@ class Inbox
             return;
         }
 
+        if(AccountService::blocksDomain($target->id, $actor->domain) == true) {
+            return;
+        }
+
         $request = FollowRequest::whereFollowerId($actor->id)
             ->whereFollowingId($target->id)
             ->whereIsRejected(false)