Преглед изворни кода

Update Inbox, add user domain blocks to Like handler

Daniel Supernault пре 1 година
родитељ
комит
e32e50da7b
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      app/Util/ActivityPub/Inbox.php

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

@@ -775,6 +775,10 @@ class Inbox
             return;
             return;
         }
         }
 
 
+        if(AccountService::blocksDomain($status->profile_id, $profile->domain) == true) {
+            return;
+        }
+
         $blocks = UserFilterService::blocks($status->profile_id);
         $blocks = UserFilterService::blocks($status->profile_id);
         if($blocks && in_array($profile->id, $blocks)) {
         if($blocks && in_array($profile->id, $blocks)) {
             return;
             return;