fix "exiftool not support svg files' #422

Closed
ihor wants to merge 4 commits from ihor:stable into stable
Showing only changes of commit 23b90698a8 - Show all commits

fix format
Some checks are pending
ci/woodpecker/pr/woodpecker Pipeline is pending

ihor 2023-01-05 15:07:36 +00:00

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