Fix #4683: Automove _(style) tags when artists are processed via BUR.
This commit is contained in:
@@ -13,6 +13,7 @@ class TagMover
|
||||
move_aliases!
|
||||
move_implications!
|
||||
move_cosplay_tag!
|
||||
move_style_tag!
|
||||
move_artist!
|
||||
move_wiki!
|
||||
move_saved_searches!
|
||||
@@ -84,6 +85,15 @@ class TagMover
|
||||
end
|
||||
end
|
||||
|
||||
def move_style_tag!
|
||||
old_style_tag = "#{old_tag.name}_(style)"
|
||||
new_style_tag = "#{new_tag.name}_(style)"
|
||||
|
||||
if old_tag.artist? && Tag.nonempty.exists?(name: old_style_tag)
|
||||
TagMover.new(old_style_tag, new_style_tag).move!
|
||||
end
|
||||
end
|
||||
|
||||
def move_saved_searches!
|
||||
SavedSearch.rewrite_queries!(old_tag.name, new_tag.name)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user