Apply aliases to characters in <character>_(cosplay) tags (#3409).
This commit is contained in:
@@ -21,7 +21,7 @@ class TagImplication < TagRelationship
|
||||
end
|
||||
|
||||
def automatic_tags_for(names)
|
||||
tags = names.grep(/\A(.+)_\(cosplay\)\Z/) { "char:#{$1}" }
|
||||
tags = names.grep(/\A(.+)_\(cosplay\)\Z/) { "char:#{TagAlias.to_aliased([$1]).first}" }
|
||||
tags << "cosplay" if tags.present?
|
||||
tags.uniq
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user