瀏覽代碼

Update Inbox, add user domain blocks to Follow handler

Daniel Supernault 1 年之前
父節點
當前提交
c89dc45e8d
共有 1 個文件被更改,包括 4 次插入0 次删除
  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)