Merge branch 'main' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2021-03-31 10:34:29 +02:00
12 changed files with 382 additions and 325 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