0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 21:45:25 +08:00
discourse/plugins/discourse-ai/lib/ai_moderation
Krzysztof Kotlarek 9d64d27ac0
FIX: Skip AI spam scanning for posts approved from review queue (#37263)
When a queued post is approved by a moderator, the newly created post
triggers the :post_created event, which causes the AI spam scanner to
scan it. If detected as spam, a new reviewable is created, causing the
item to reappear in the review queue immediately after being cleared.

This fix adds a check in SpamScanner.new_post to skip scanning posts
that have an associated approved ReviewableQueuedPost. The check is
intentionally not in should_scan_post? so that user edits to these posts
are still scanned.
2026-01-23 10:15:02 +08:00
..
entry_point.rb DEV: Clean up scope resolution operators in plugins (#34979) 2025-09-30 14:36:34 +02:00
spam_metric.rb
spam_report.rb
spam_scanner.rb FIX: Skip AI spam scanning for posts approved from review queue (#37263) 2026-01-23 10:15:02 +08:00