浏览代码

Update Inbox, add user domain blocks to Accept handler

Daniel Supernault 1 年之前
父节点
当前提交
3fbf8f159e
共有 1 个文件被更改,包括 4 次插入0 次删除
  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)