Browse Source

Update Inbox, add user domain blocks to Follow handler

Daniel Supernault 1 year ago
parent
commit
c89dc45e8d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app/Util/ActivityPub/Inbox.php

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

@@ -514,6 +514,10 @@ class Inbox
             return;
         }
 
+        if(AccountService::blocksDomain($target->id, $actor->domain) == true) {
+            return;
+        }
+
         if(
             Follower::whereProfileId($actor->id)
                 ->whereFollowingId($target->id)