debug log for missing score
This commit is contained in:
@@ -180,6 +180,7 @@ 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);
|
||||||
// XXX: show a question-mark or something
|
// XXX: show a question-mark or something
|
||||||
} else if ($score->is_spam) {
|
} else if ($score->is_spam) {
|
||||||
$form = new TrainHamForm($out, $notice);
|
$form = new TrainHamForm($out, $notice);
|
||||||
|
Reference in New Issue
Block a user