From d2c9d146bcb8e767bced25a2e669e192da107cf7 Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Thu, 6 Mar 2025 11:17:49 +1100 Subject: [PATCH] DEV: fix build --- lib/sentiment/entry_point.rb | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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