From 2c70680b24d19bd9a7c446e196421054961eea50 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 16 May 2012 12:26:29 -0400 Subject: [PATCH] Chance to train unknown --- plugins/ActivitySpam/ActivitySpamPlugin.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/ActivitySpam/ActivitySpamPlugin.php b/plugins/ActivitySpam/ActivitySpamPlugin.php index e9c481e3bc..978f8b4cf8 100644 --- a/plugins/ActivitySpam/ActivitySpamPlugin.php +++ b/plugins/ActivitySpam/ActivitySpamPlugin.php @@ -188,8 +188,9 @@ class ActivitySpamPlugin extends Plugin $score = Spam_score::staticGet('notice_id', $notice->id); if (empty($score)) { - $this->debug("No score for notice " . $notice->id); - // XXX: show a question-mark or something + // If it's empty, we can train it. + $form = new TrainSpamForm($out, $notice); + $form->show(); } else if ($score->is_spam) { $form = new TrainHamForm($out, $notice); $form->show(); -- 2.39.5