Enable importing GIF emojis in CLI (#17706)

lolsob-rspec
Rens Groothuijsen 2022-03-06 23:41:44 +01:00 committed by GitHub
parent 1c070bd94c
commit d99303533e
1 changed files with 1 additions and 1 deletions

View 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, '.*')