]> cat aescling's git repositories - mastodon.git/commitdiff
Enable importing GIF emojis in CLI (#17706)
authorRens Groothuijsen <l.groothuijsen@alumni.maastrichtuniversity.nl>
Sun, 6 Mar 2022 22:41:44 +0000 (23:41 +0100)
committerGitHub <noreply@github.com>
Sun, 6 Mar 2022 22:41:44 +0000 (23:41 +0100)
lib/mastodon/emoji_cli.rb

index 5bee70ea51e52bfc0ad8418133deb85ef65af54d..a3e94790985882a7777a71254bbfe7ea5acceb46 100644 (file)
@@ -41,7 +41,7 @@ module Mastodon
 
       Gem::Package::TarReader.new(Zlib::GzipReader.open(path)) do |tar|
         tar.each do |entry|
-          next unless entry.file? && entry.full_name.end_with?('.png')
+          next unless entry.file? && entry.full_name.end_with?('.png', '.gif')
 
           filename = File.basename(entry.full_name, '.*')