summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLain Soykaf <lain@lain.com>2023-01-05 11:29:06 -0500
committerLain Soykaf <lain@lain.com>2023-01-05 11:29:06 -0500
commitfe00fbfd548f0564170ac124e3d8b9574036c303 (patch)
tree6bd87bfbb785577ebbe661a3e5590e2489f98bf6 /lib
parent5b4962165e2c5dd6350fbd7dcc342b9036a442b3 (diff)
downloadpleroma-fe00fbfd548f0564170ac124e3d8b9574036c303.tar.gz
pleroma-fe00fbfd548f0564170ac124e3d8b9574036c303.zip
B StripLocation: Add test, work for all svgs.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/upload/filter/exiftool/strip_location.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/upload/filter/exiftool/strip_location.ex b/lib/pleroma/upload/filter/exiftool/strip_location.ex
index 0388b3aba..f2bcc4622 100644
--- a/lib/pleroma/upload/filter/exiftool/strip_location.ex
+++ b/lib/pleroma/upload/filter/exiftool/strip_location.ex
@@ -14,7 +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{content_type: "image/svg" <> _}), do: {:ok, :noop}
def filter(%Pleroma.Upload{tempfile: file, content_type: "image" <> _}) do
try do