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 @@ +