diff options
author | Stanislas <stanislas.lange@pm.me> | 2021-03-24 10:55:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-24 10:55:16 +0100 |
commit | d33351af3c668f585b046e19233523083bfb7075 (patch) | |
tree | 1156b045ce4837fc01e5572cf5cf0357c9ef60dc /lib | |
parent | 88d69d3261c2f02278d07dc302ff7fc15bd68e8c (diff) |
tootctl emoji import: case insensitive duplicate check (#15738)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mastodon/emoji_cli.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mastodon/emoji_cli.rb b/lib/mastodon/emoji_cli.rb index 0a1f538e6..5bee70ea5 100644 --- a/lib/mastodon/emoji_cli.rb +++ b/lib/mastodon/emoji_cli.rb @@ -49,7 +49,7 @@ module Mastodon next if filename.start_with?('._') shortcode = [options[:prefix], filename, options[:suffix]].compact.join - custom_emoji = CustomEmoji.local.find_by(shortcode: shortcode) + custom_emoji = CustomEmoji.local.find_by("LOWER(shortcode) = ?", shortcode.downcase) if custom_emoji && !options[:overwrite] skipped += 1 |