From 053b30bca0b4624061bf2b006c1abe5812eb0a00 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 17 May 2023 04:10:07 -0600 Subject: [PATCH] Update nav and Bouncer --- app/Util/Sentiment/Bouncer.php | 7 ++ .../views/admin/partial/sidenav.blade.php | 95 +++++++++++-------- 2 files changed, 60 insertions(+), 42 deletions(-) diff --git a/app/Util/Sentiment/Bouncer.php b/app/Util/Sentiment/Bouncer.php index 6aa7a3d8f..96721f13b 100644 --- a/app/Util/Sentiment/Bouncer.php +++ b/app/Util/Sentiment/Bouncer.php @@ -10,6 +10,7 @@ use App\Services\NotificationService; use App\Services\StatusService; use App\Jobs\ReportPipeline\AutospamNotifyAdminViaEmail; use App\Notification; +use App\Services\AutospamService; class Bouncer { @@ -65,6 +66,12 @@ class Bouncer { return (new self)->handle($status); } + if(AutospamService::active()) { + if(AutospamService::check($status->caption)) { + return (new self)->handle($status); + } + } + $recentKey = 'pf:bouncer_v0:recent_by_pid:' . $status->profile_id; $recentTtl = now()->addHours(28); diff --git a/resources/views/admin/partial/sidenav.blade.php b/resources/views/admin/partial/sidenav.blade.php index a34d572d2..bfd93e77e 100644 --- a/resources/views/admin/partial/sidenav.blade.php +++ b/resources/views/admin/partial/sidenav.blade.php @@ -15,6 +15,13 @@ + + - -