diff options
author | Rens Groothuijsen <l.groothuijsen@alumni.maastrichtuniversity.nl> | 2022-03-06 23:41:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-06 23:41:44 +0100 |
commit | c439e13e1231acd763b38ea6287b60edf51cadc8 (patch) | |
tree | f1c9e12d89e557b43a9b8c9513df9f430ff56113 /lib | |
parent | b5329e0035d455e72dad7249d88bd624b5cb59a0 (diff) |
Enable importing GIF emojis in CLI (#17706)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mastodon/emoji_cli.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mastodon/emoji_cli.rb b/lib/mastodon/emoji_cli.rb index 5bee70ea5..a3e947909 100644 --- a/lib/mastodon/emoji_cli.rb +++ b/lib/mastodon/emoji_cli.rb @@ -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, '.*') |