mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 21:45:25 +08:00
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. |
||
|---|---|---|
| .. | ||
| entry_point.rb | ||
| spam_metric.rb | ||
| spam_report.rb | ||
| spam_scanner.rb | ||