From d473ddd02c9cfddd12bb0edae3be37392695e774 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 22 Jun 2020 19:48:06 +0100 Subject: [PATCH] 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. --- app/jobs/regular/process_post.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/regular/process_post.rb b/app/jobs/regular/process_post.rb index 24048a5f46f..6ba04d4f5b2 100644 --- a/app/jobs/regular/process_post.rb +++ b/app/jobs/regular/process_post.rb @@ -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(