diff --git a/lib/sentiment/entry_point.rb b/lib/sentiment/entry_point.rb index 3c66985bc..16f891f69 100644 --- a/lib/sentiment/entry_point.rb +++ b/lib/sentiment/entry_point.rb @@ -18,13 +18,11 @@ def inject_into(plugin) ClassificationResult.has_sentiment_classification? && SiteSetting.ai_sentiment_enabled end - if Rails.env.test? || - ClassificationResult.has_sentiment_classification? && SiteSetting.ai_sentiment_enabled - EmotionFilterOrder.register!(plugin) - EmotionDashboardReport.register!(plugin) - SentimentDashboardReport.register!(plugin) - SentimentAnalysisReport.register!(plugin) - end + # TODO we need new interfaces to conditionally register depending on site in the multisite + EmotionFilterOrder.register!(plugin) + EmotionDashboardReport.register!(plugin) + SentimentDashboardReport.register!(plugin) + SentimentAnalysisReport.register!(plugin) end end end