mirror of
https://github.com/discourse/discourse.git
synced 2026-03-03 23:54:20 +08:00
When a user is auto-silenced because they receive enough spam flag, we notify moderators (given the notify_mods_when_user_silenced is enabled). However, when a user is auto-silenced for other reasons, e.g. typing too fast, we don't send this notification. This commit: - Lifts the notification logic into a new UserSilencer#auto_silence method, which delegates 99% of its work to UserSilencer#silence. - Uses this new method in places where users are auto-silenced. |
||
|---|---|---|
| .. | ||
| auto_silence.rb | ||
| flag_sockpuppets.rb | ||