FIX: We should check for watched words first even if the user is a fast typer. (#10630)

This commit is contained in:
Roman Rizzi
2020-09-09 14:36:22 -03:00
committed by GitHub
parent 24cd3e2c2c
commit cac64a95aa
2 changed files with 17 additions and 3 deletions

View File

@@ -98,12 +98,12 @@ class NewPostManager
user.trust_level < SiteSetting.approve_new_topics_unless_trust_level.to_i
)
return :watched_word if WordWatcher.new("#{manager.args[:title]} #{manager.args[:raw]}").requires_approval?
return :fast_typer if is_fast_typer?(manager)
return :auto_silence_regex if matches_auto_silence_regex?(manager)
return :watched_word if WordWatcher.new("#{manager.args[:title]} #{manager.args[:raw]}").requires_approval?
return :staged if SiteSetting.approve_unless_staged? && user.staged?
return :category if post_needs_approval_in_its_category?(manager)