You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 22, 2025. It is now read-only.
## 🔍 Overview
We want to unhide `ai_spam_detection_enabled` setting so that we can retain staff action log features. However, we also want to ensure users cannot enable spam detection without having `AiModerationSetting.spam` present in the database.
In this update we unhide the setting, but also add a validator to ensure the necessary configuration is in place before allowing the setting to be enabled.
Copy file name to clipboardExpand all lines: config/locales/server.en.yml
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,8 @@ en:
56
56
ai_nsfw_flag_threshold_sexy: "Threshold for an image classified as sexy to be considered NSFW."
57
57
ai_nsfw_models: "Models to use for NSFW inference."
58
58
59
+
ai_spam_detection_enabled: "Enable the AI spam detection module"
60
+
59
61
ai_openai_api_key: "API key for OpenAI API. ONLY used for Image creation and edits. For GPT use the LLM config tab"
60
62
ai_openai_image_generation_url: "URL for OpenAI image generation API"
61
63
ai_openai_image_edit_url: "URL for OpenAI image edit API"
@@ -275,6 +277,7 @@ en:
275
277
invalid_error_type: "Invalid error type provided"
276
278
unexpected: "An unexpected error occured"
277
279
bot_user_update_failed: "Failed to update the spam scanning bot user"
280
+
configuration_missing: "The AI spam detection configuration is missing. Add configuration in the 'Admin > Plugins > Discourse AI > Spam' before enabling."
278
281
279
282
ai_bot:
280
283
reply_error: "Sorry, it looks like our system encountered an unexpected issue while trying to reply.\n\n[details='Error details']\n%{details}\n[/details]"
0 commit comments