From 6e3215622bf9f57efd9010268ad9e8ef9a913348 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Mon, 25 Mar 2024 22:21:33 +0100 Subject: [PATCH] fix check for spam --- app/Models/ChatLog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/ChatLog.php b/app/Models/ChatLog.php index 8564ff0..943ce6e 100644 --- a/app/Models/ChatLog.php +++ b/app/Models/ChatLog.php @@ -166,7 +166,7 @@ class ChatLog extends Model { } protected function scanForSpam() { - if (is_numeric($text)) { + if (is_numeric($this->text_content)) { return true; } return static::spammyText($this->text_content); -- 2.39.2