From: Evan Prodromou Date: Wed, 16 May 2012 16:26:29 +0000 (-0400) Subject: Chance to train unknown X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2c70680b24d19bd9a7c446e196421054961eea50;p=quix0rs-gnu-social.git Chance to train unknown --- 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();