Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 453bb48

Browse files
authored
DEV: fix build (#1168)
1 parent e255c7a commit 453bb48

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

lib/sentiment/entry_point.rb

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@ def inject_into(plugin)
1818
ClassificationResult.has_sentiment_classification? && SiteSetting.ai_sentiment_enabled
1919
end
2020

21-
if Rails.env.test? ||
22-
ClassificationResult.has_sentiment_classification? && SiteSetting.ai_sentiment_enabled
23-
EmotionFilterOrder.register!(plugin)
24-
EmotionDashboardReport.register!(plugin)
25-
SentimentDashboardReport.register!(plugin)
26-
SentimentAnalysisReport.register!(plugin)
27-
end
21+
# TODO we need new interfaces to conditionally register depending on site in the multisite
22+
EmotionFilterOrder.register!(plugin)
23+
EmotionDashboardReport.register!(plugin)
24+
SentimentDashboardReport.register!(plugin)
25+
SentimentAnalysisReport.register!(plugin)
2826
end
2927
end
3028
end

0 commit comments

Comments
 (0)