fix "exiftool not support svg files'
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful

This commit is contained in:
ihor 2023-01-05 13:57:38 +00:00
parent 336d06b2a8
commit dd328c71b6

View file

@ -14,6 +14,7 @@ defmodule Pleroma.Upload.Filter.Exiftool do
# Formats not compatible with exiftool at this time
def filter(%Pleroma.Upload{content_type: "image/heic"}), do: {:ok, :noop}
def filter(%Pleroma.Upload{content_type: "image/webp"}), do: {:ok, :noop}
def filter(%Pleroma.Upload{content_type: "image/svg+xml"}), do: {:ok, :noop}
def filter(%Pleroma.Upload{tempfile: file, content_type: "image" <> _}) do
try do