]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
debug log for missing score
authorEvan Prodromou <evan@status.net>
Wed, 7 Mar 2012 15:04:55 +0000 (09:04 -0600)
committerEvan Prodromou <evan@status.net>
Wed, 7 Mar 2012 15:04:55 +0000 (09:04 -0600)
ActivitySpamPlugin.php

index 26a0f5c7a5631d51b637d629673a16dfe86658ff..6950d545544039f7245b5ac3c47d80a85e246cb6 100644 (file)
@@ -180,6 +180,7 @@ 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
             } else if ($score->is_spam) {
                 $form = new TrainHamForm($out, $notice);