FIX: Use raw content when checking for watched words to flag (#10104)

This makes flagged watched words match the behavior of censor, requires_approval and blocked watched words.
This commit is contained in:
David Taylor 2020-06-22 19:48:06 +01:00 committed by GitHub
parent 1617905e03
commit d473ddd02c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ module Jobs
end
if !post.user&.staff? && !post.user&.staged?
s = post.cooked
s = post.raw
s << " #{post.topic.title}" if post.post_number == 1
if !args[:bypass_bump] && WordWatcher.new(s).should_flag?
PostActionCreator.create(