mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-23 08:48:06 +01:00
tootctl emoji import: case insensitive duplicate check (#15738)
This commit is contained in:
parent
88d69d3261
commit
d33351af3c
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ module Mastodon
|
||||||
next if filename.start_with?('._')
|
next if filename.start_with?('._')
|
||||||
|
|
||||||
shortcode = [options[:prefix], filename, options[:suffix]].compact.join
|
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]
|
if custom_emoji && !options[:overwrite]
|
||||||
skipped += 1
|
skipped += 1
|
||||||
|
|
Loading…
Reference in a new issue