mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-29 18:59:03 +01:00
Enable importing GIF emojis in CLI (#17706)
This commit is contained in:
parent
b5329e0035
commit
c439e13e12
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ module Mastodon
|
||||||
|
|
||||||
Gem::Package::TarReader.new(Zlib::GzipReader.open(path)) do |tar|
|
Gem::Package::TarReader.new(Zlib::GzipReader.open(path)) do |tar|
|
||||||
tar.each do |entry|
|
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, '.*')
|
filename = File.basename(entry.full_name, '.*')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue