Merge pull request #4898 from nonamethanks/feat-meme-tag

Autotag the meme tag on posts with *_(meme) tags
This commit is contained in:
evazion
2021-10-08 05:49:17 -05:00
committed by GitHub

View File

@@ -352,6 +352,7 @@ class Tag < ApplicationRecord
tags += names.grep(/\A(.+)_\(cosplay\)\z/i) { "char:#{TagAlias.to_aliased([$1]).first}" }
tags << "cosplay" if names.any?(/_\(cosplay\)\z/i)
tags << "school_uniform" if names.any?(/_school_uniform\z/i)
tags << "meme" if names.any?(/_\(meme\)\z/i)
tags.uniq
end