Chance to train unknown

This commit is contained in:
Evan Prodromou 2012-05-16 12:26:29 -04:00
parent e2b4c203a6
commit 2c70680b24

View File

@ -188,8 +188,9 @@ class ActivitySpamPlugin extends Plugin
$score = Spam_score::staticGet('notice_id', $notice->id); $score = Spam_score::staticGet('notice_id', $notice->id);
if (empty($score)) { if (empty($score)) {
$this->debug("No score for notice " . $notice->id); // If it's empty, we can train it.
// XXX: show a question-mark or something $form = new TrainSpamForm($out, $notice);
$form->show();
} else if ($score->is_spam) { } else if ($score->is_spam) {
$form = new TrainHamForm($out, $notice); $form = new TrainHamForm($out, $notice);
$form->show(); $form->show();