]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/ChatLog.php
fix check for spam
[alttp.git] / 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);