From: Daniel Karbach Date: Mon, 25 Mar 2024 21:21:33 +0000 (+0100) Subject: fix check for spam X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=6e3215622bf9f57efd9010268ad9e8ef9a913348;p=alttp.git fix check for spam --- 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);