mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: don't flag watched words when rebaking posts
This commit is contained in:
@@ -41,7 +41,7 @@ module Jobs
|
||||
if !post.user.staff? && !post.user.staged
|
||||
s = post.cooked
|
||||
s << " #{post.topic.title}" if post.post_number == 1
|
||||
if WordWatcher.new(s).should_flag?
|
||||
if !args[:bypass_bump] && WordWatcher.new(s).should_flag?
|
||||
PostAction.act(Discourse.system_user, post, PostActionType.types[:inappropriate]) rescue PostAction::AlreadyActed
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user