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

Commit 23f3772

Browse files
committed
DEV: Ensure enabling/disabling spam is set and logged
1 parent 297c64c commit 23f3772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/discourse_ai/admin/ai_spam_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def update
5050
)
5151
end
5252

53-
SiteSetting.ai_spam_detection_enabled = is_enabled
53+
SiteSetting.set_and_log("ai_spam_detection_enabled", is_enabled)
5454
end
5555

5656
render json: AiSpamSerializer.new(spam_config, root: false)

0 commit comments

Comments
 (0)