Autotag the meme tag on posts with *_(meme) tags
This commit is contained in:
@@ -352,6 +352,7 @@ class Tag < ApplicationRecord
|
|||||||
tags += names.grep(/\A(.+)_\(cosplay\)\z/i) { "char:#{TagAlias.to_aliased([$1]).first}" }
|
tags += names.grep(/\A(.+)_\(cosplay\)\z/i) { "char:#{TagAlias.to_aliased([$1]).first}" }
|
||||||
tags << "cosplay" if names.any?(/_\(cosplay\)\z/i)
|
tags << "cosplay" if names.any?(/_\(cosplay\)\z/i)
|
||||||
tags << "school_uniform" if names.any?(/_school_uniform\z/i)
|
tags << "school_uniform" if names.any?(/_school_uniform\z/i)
|
||||||
|
tags << "meme" if names.any?(/_\(meme\)\z/i)
|
||||||
tags.uniq
|
tags.uniq
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user