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

Commit 10c229e

Browse files
committed
FIX
1 parent 03eb1b8 commit 10c229e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/sentiment/entry_point.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ def inject_into(plugin)
2222
end,
2323
) { ClassificationResult.has_sentiment_classification? }
2424

25-
if ClassificationResult.has_sentiment_classification?
25+
if ClassificationResult.has_sentiment_classification? && SiteSetting.ai_sentiment_enabled &&
26+
SiteSetting.ai_sentiment_reports_enabled
2627
EmotionFilterOrder.register!(plugin)
2728
EmotionDashboardReport.register!(plugin)
2829
SentimentDashboardReport.register!(plugin)

0 commit comments

Comments
 (0)