change formatting for modactions on alias/implication update + add mod action for tag batch changes

This commit is contained in:
Albert Yi
2016-12-05 14:46:02 -08:00
parent 2605da1037
commit eddf2e59f0
4 changed files with 13 additions and 7 deletions

View File

@@ -12,6 +12,8 @@ module Moderator
CurrentUser.without_safe_mode do
CurrentUser.scoped(updater, updater_ip_addr) do
ModAction.create(:description => "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(" ")