BURs: fix tag nukes not removing antecedent implications.

Fix a bug where if A implied B, and A was nuked, then the A->B
implication wasn't removed.
This commit is contained in:
evazion
2021-09-06 00:24:14 -05:00
parent 4dcfd1d141
commit d03b150180
2 changed files with 6 additions and 3 deletions

View File

@@ -158,6 +158,7 @@ class BulkUpdateRequestProcessor
# otherwise the tag won't be removed from posts that have those other tags
if PostQueryBuilder.new(args[0]).is_simple_tag?
TagImplication.active.where(consequent_name: args[0]).each { |ti| ti.reject!(User.system) }
TagImplication.active.where(antecedent_name: args[0]).each { |ti| ti.reject!(User.system) }
end
TagBatchChangeJob.perform_later(args[0], "-#{args[0]}")