diff --git a/plugins/ActivitySpam/ActivitySpamPlugin.php b/plugins/ActivitySpam/ActivitySpamPlugin.php index 70e2c13d61..9c1f633260 100644 --- a/plugins/ActivitySpam/ActivitySpamPlugin.php +++ b/plugins/ActivitySpam/ActivitySpamPlugin.php @@ -65,6 +65,10 @@ class ActivitySpamPlugin extends Plugin $this->hideSpam = common_config('activityspam', 'hidespam'); + // Let DB_DataObject find Spam_score + + common_config_append('db', 'class_location', ':'.dirname(__FILE__)); + return true; }