tootctl emoji import: case insensitive duplicate check (#15738)

lolsob-rspec
Stanislas 2021-03-24 10:55:16 +01:00 committed by GitHub
parent 5119cd8a0b
commit 9c85025a11
1 changed files with 1 additions and 1 deletions

View File

@ -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