This commit is contained in:
2026-04-23 00:05:27 +09:00
parent c9df340978
commit bce04488ed
2 changed files with 323 additions and 14 deletions
+4 -2
View File
@@ -325,10 +325,12 @@ class TagsController < ApplicationController
with_no_deerjikist: false,
deny_nico: true)
TagVersioning.record_tag_snapshots!((tag.parents.to_a + parent_tags).uniq,
old_parent_tags = tag.parents.to_a
TagVersioning.record_tag_snapshots!((old_parent_tags + parent_tags).uniq,
created_by_user: current_user)
tag.tag_implications.destroy_all
tag.reversed_tag_implications.destroy_all
parent_tags.each do |parent_tag|
next if parent_tag == tag