We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 2c70680b authored by Evan Prodromou's avatar Evan Prodromou

Chance to train unknown

parent e2b4c203
......@@ -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);
} else if ($score->is_spam) {
$form = new TrainHamForm($out, $notice);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment