FIX: don't flag watched words when rebaking posts

This commit is contained in:
Neil Lalonde
2017-10-12 15:34:22 -04:00
parent c383cf82a7
commit c53f41f4f2
2 changed files with 9 additions and 1 deletions

View File

@@ -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