]> git.localhorst.tv Git - alttp.git/commitdiff
fix check for spam
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 25 Mar 2024 21:21:33 +0000 (22:21 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 25 Mar 2024 21:21:33 +0000 (22:21 +0100)
app/Models/ChatLog.php

index 8564ff097b55abbe7eb12e4072568222bb60c944..943ce6e659e846effb274ba467c23ecfbd1470ff 100644 (file)
@@ -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);