From 03ad41e2c454b536127900d73e94dfda53160c92 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 15 Oct 2024 00:13:45 -0600 Subject: [PATCH] Update AP Helpers --- app/Util/ActivityPub/Helpers.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Util/ActivityPub/Helpers.php b/app/Util/ActivityPub/Helpers.php index 2111e3b30..782404836 100644 --- a/app/Util/ActivityPub/Helpers.php +++ b/app/Util/ActivityPub/Helpers.php @@ -9,6 +9,7 @@ use App\Jobs\MediaPipeline\MediaStoragePipeline; use App\Jobs\StatusPipeline\StatusReplyPipeline; use App\Jobs\StatusPipeline\StatusTagsPipeline; use App\Media; +use App\Models\ModeratedProfile; use App\Models\Poll; use App\Profile; use App\Services\Account\AccountStatService; @@ -814,6 +815,11 @@ class Helpers if (! self::validateUrl($res['id'])) { return; } + + if (ModeratedProfile::whereProfileUrl($res['id'])->whereIsBanned(true)->exists()) { + return; + } + $urlDomain = parse_url($url, PHP_URL_HOST); $domain = parse_url($res['id'], PHP_URL_HOST); if (strtolower($urlDomain) !== strtolower($domain)) {