Browse Source

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

closed-social-v3
Stanislas 3 years ago
committed by GitHub
parent
commit
d33351af3c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/mastodon/emoji_cli.rb

+ 1
- 1
lib/mastodon/emoji_cli.rb 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

Loading…
Cancel
Save