From 5a358b31fef6be20e7a512903e538a9d0ef199b3 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Sat, 20 Feb 2021 14:41:57 -0600 Subject: [PATCH] Custom check here not needed as we aren't using mogrify anymore --- lib/pleroma/application_requirements.ex | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/lib/pleroma/application_requirements.ex b/lib/pleroma/application_requirements.ex index b819ff6d0..64e013152 100644 --- a/lib/pleroma/application_requirements.ex +++ b/lib/pleroma/application_requirements.ex @@ -214,31 +214,6 @@ defmodule Pleroma.ApplicationRequirements do defp check_repo_pool_size!(result), do: result - defp check_filter(:"Elixir.Pleroma.Upload.Filter.HeifToJpeg" = filter, command_required) do - filters = Config.get([Pleroma.Upload, :filters]) - - if filter in filters && Pleroma.Utils.command_available?(command_required) do - output = - String.to_charlist("#{command_required} --version") - |> :os.cmd() - |> String.Chars.to_string() - |> String.split() - - cond do - "heic" in output -> - true - - true -> - Logger.error( - "#{filter} is specified in the list of Pleroma.Upload filters, but the " <> - "#{command_required} does not support heic files." - ) - - false - end - end - end - defp check_filter(filter, command_required) do filters = Config.get([Pleroma.Upload, :filters])