feat: auto deletion of spam via AI#15
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds automated deletion of spam forum content detected by AI moderation. The feature is controlled by a new waffle flag discussions.enable_ai_auto_delete_spam and works in conjunction with the existing AI moderation system.
Changes:
- Added a new waffle flag to enable/disable AI-powered auto-deletion of spam content
- Enhanced AI moderation flow to soft-delete spam content in addition to flagging it
- Version bump to reflect the new feature
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| forum/toggles.py | Adds new waffle flag ENABLE_AI_AUTO_DELETE_SPAM with helper function to check if auto-delete is enabled for a course |
| forum/ai_moderation.py | Implements auto-deletion logic by calling API layer deletion functions when spam is detected and the flag is enabled; renames method to reflect broader moderation scope |
| forum/init.py | Version bump from 0.4.1 to 0.4.2 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Description
This PR adds auto deletion of spam forum content.
The feature is gated behind a waffle flag
discussions.enable_ai_auto_delete_spamJira Ticket