summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmytro Poltavchenko <xinit.info@gmail.com>2023-01-05 14:14:46 +0000
committerLain Soykaf <lain@lain.com>2023-01-05 11:26:57 -0500
commit5b4962165e2c5dd6350fbd7dcc342b9036a442b3 (patch)
tree65d0f67c22d39dfaeb52dda625507de0e7e59e3a
parent51b4513258890e68294603f6f3dc432f12d2b383 (diff)
downloadpleroma-5b4962165e2c5dd6350fbd7dcc342b9036a442b3.tar.gz
pleroma-5b4962165e2c5dd6350fbd7dcc342b9036a442b3.zip
Added SVG to formats not compatible with exiftool
-rw-r--r--lib/pleroma/upload/filter/exiftool/strip_location.ex1
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