mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
parent
1617905e03
commit
d473ddd02c
@ -41,7 +41,7 @@ module Jobs
|
|||||||
end
|
end
|
||||||
|
|
||||||
if !post.user&.staff? && !post.user&.staged?
|
if !post.user&.staff? && !post.user&.staged?
|
||||||
s = post.cooked
|
s = post.raw
|
||||||
s << " #{post.topic.title}" if post.post_number == 1
|
s << " #{post.topic.title}" if post.post_number == 1
|
||||||
if !args[:bypass_bump] && WordWatcher.new(s).should_flag?
|
if !args[:bypass_bump] && WordWatcher.new(s).should_flag?
|
||||||
PostActionCreator.create(
|
PostActionCreator.create(
|
||||||
|
Loading…
Reference in New Issue
Block a user