Ver código fonte

Update Inbox, add user domain blocks to Accept handler

Daniel Supernault 1 ano atrás
pai
commit
3fbf8f159e
1 arquivos alterados com 4 adições e 0 exclusões
  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)