summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLain Soykaf <lain@lain.com>2023-01-05 11:29:06 -0500
committertusooa <tusooa@kazv.moe>2023-02-20 12:21:04 -0500
commitd5125e6ce75ee9c2cf54e5399625d7a94e313571 (patch)
treefec826387b7d46234f34aaea6a7a1c5df6f839f9 /lib
parente8fca8882aa4d8c9fc5e9f27f625beca19205380 (diff)
downloadpleroma-d5125e6ce75ee9c2cf54e5399625d7a94e313571.tar.gz
pleroma-d5125e6ce75ee9c2cf54e5399625d7a94e313571.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