Chance to train unknown
This commit is contained in:
parent
e2b4c203a6
commit
2c70680b24
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user