diff options
author | Dmytro Poltavchenko <xinit.info@gmail.com> | 2023-01-05 14:14:46 +0000 |
---|---|---|
committer | tusooa <tusooa@kazv.moe> | 2023-02-20 12:21:04 -0500 |
commit | e8fca8882aa4d8c9fc5e9f27f625beca19205380 (patch) | |
tree | e1c3bcf6c819e5350db9d5d58b4cba4f3dab1e2d /lib | |
parent | 259905a8932074514e3473d458bedce56cd25ac1 (diff) | |
download | pleroma-e8fca8882aa4d8c9fc5e9f27f625beca19205380.tar.gz pleroma-e8fca8882aa4d8c9fc5e9f27f625beca19205380.zip |
Added SVG to formats not compatible with exiftool
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/upload/filter/exiftool/strip_location.ex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/upload/filter/exiftool/strip_location.ex b/lib/pleroma/upload/filter/exiftool/strip_location.ex index 6100527d3..0388b3aba 100644 --- a/lib/pleroma/upload/filter/exiftool/strip_location.ex +++ b/lib/pleroma/upload/filter/exiftool/strip_location.ex @@ -14,6 +14,7 @@ defmodule Pleroma.Upload.Filter.Exiftool.StripLocation 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 |