mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-03-06 17:30:20 +00:00
DEV: fix build (#1168)
This commit is contained in:
parent
e255c7a8f0
commit
453bb4821f
@ -18,13 +18,11 @@ module DiscourseAi
|
|||||||
ClassificationResult.has_sentiment_classification? && SiteSetting.ai_sentiment_enabled
|
ClassificationResult.has_sentiment_classification? && SiteSetting.ai_sentiment_enabled
|
||||||
end
|
end
|
||||||
|
|
||||||
if Rails.env.test? ||
|
# TODO we need new interfaces to conditionally register depending on site in the multisite
|
||||||
ClassificationResult.has_sentiment_classification? && SiteSetting.ai_sentiment_enabled
|
EmotionFilterOrder.register!(plugin)
|
||||||
EmotionFilterOrder.register!(plugin)
|
EmotionDashboardReport.register!(plugin)
|
||||||
EmotionDashboardReport.register!(plugin)
|
SentimentDashboardReport.register!(plugin)
|
||||||
SentimentDashboardReport.register!(plugin)
|
SentimentAnalysisReport.register!(plugin)
|
||||||
SentimentAnalysisReport.register!(plugin)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user