Переглянути джерело

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)