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);
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();