From 5adae54d5216091dc04d2464986ea346032c375e Mon Sep 17 00:00:00 2001 From: itepechi Date: Mon, 15 Apr 2024 04:34:38 +0900 Subject: [PATCH] Removed `Dedupe` upload filter from instance generation wizard The `Dedupe` filter is now always active, so there is no need to ask the user to configure it anymore. --- lib/mix/tasks/pleroma/instance.ex | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/lib/mix/tasks/pleroma/instance.ex b/lib/mix/tasks/pleroma/instance.ex index 58b7f8ada..276a1bceb 100644 --- a/lib/mix/tasks/pleroma/instance.ex +++ b/lib/mix/tasks/pleroma/instance.ex @@ -39,7 +39,6 @@ def run(["gen" | rest]) do listen_port: :string, strip_uploads: :string, anonymize_uploads: :string, - dedupe_uploads: :string, analyze_uploads: :string ], aliases: [ @@ -218,14 +217,6 @@ def run(["gen" | rest]) do "n" ) === "y" - dedupe_uploads = - get_option( - options, - :dedupe_uploads, - "Do you want to deduplicate uploaded files? (y/n)", - "n" - ) === "y" - {analyze_uploads_message, analyze_uploads_default} = if Enum.all?(["mogrify", "convert", "ffprobe"], fn x -> Pleroma.Utils.command_available?(x) @@ -288,7 +279,6 @@ def run(["gen" | rest]) do upload_filters(%{ strip: strip_uploads, anonymize: anonymize_uploads, - dedupe: dedupe_uploads, analyze: analyze_uploads }) ) @@ -378,13 +368,6 @@ defp upload_filters(filters) when is_map(filters) do enabled_filters end - enabled_filters = - if filters.dedupe do - enabled_filters ++ [Pleroma.Upload.Filter.Dedupe] - else - enabled_filters - end - enabled_filters = if filters.analyze do enabled_filters ++ [Pleroma.Upload.Filter.AnalyzeMetadata]