logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 5b4962165e2c5dd6350fbd7dcc342b9036a442b3
parent 51b4513258890e68294603f6f3dc432f12d2b383
Author: Dmytro Poltavchenko <xinit.info@gmail.com>
Date:   Thu,  5 Jan 2023 14:14:46 +0000

Added SVG to formats not compatible with exiftool

Diffstat:

Mlib/pleroma/upload/filter/exiftool/strip_location.ex1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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