mass updates: log modaction after update successfully completes.

This commit is contained in:
evazion
2017-05-28 11:56:44 -05:00
parent c1a8800bf8
commit 88d14b30ed

View File

@@ -12,8 +12,6 @@ module Moderator
CurrentUser.without_safe_mode do
CurrentUser.scoped(updater, updater_ip_addr) do
ModAction.log("processed mass update: #{antecedent} -> #{consequent}")
::Post.tag_match(antecedent).where("true /* Moderator::TagBatchChange#perform */").find_each do |post|
post.reload
tags = (post.tag_array - normalized_antecedent + normalized_consequent).join(" ")
@@ -31,6 +29,8 @@ module Moderator
end
end
end
ModAction.log("processed mass update: #{antecedent} -> #{consequent}")
end
end
end