From fd177a363be9fbaac11bc37893ad8a2acbe9bd02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Fri, 28 Nov 2025 15:59:07 +0100 Subject: [PATCH] cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- config/description.exs | 8 ++++---- lib/pleroma/web/plugs/frontend_static.ex | 4 +--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/config/description.exs b/config/description.exs index e5e7160d4..a8a201e33 100644 --- a/config/description.exs +++ b/config/description.exs @@ -3330,10 +3330,10 @@ config :pleroma, :config_description, [ children: frontend_options }, %{ - key: :pickable, - type: {:list, :string}, - description: - "A list containing all frontends users can pick as their preference, format is :name/:ref, e.g pleroma-fe/stable." + key: :pickable, + type: {:list, :string}, + description: + "A list containing all frontends users can pick as their preference, format is :name/:ref, e.g pleroma-fe/stable." } ] }, diff --git a/lib/pleroma/web/plugs/frontend_static.ex b/lib/pleroma/web/plugs/frontend_static.ex index 2808f96fc..6c0186f14 100644 --- a/lib/pleroma/web/plugs/frontend_static.ex +++ b/lib/pleroma/web/plugs/frontend_static.ex @@ -49,7 +49,6 @@ defmodule Pleroma.Web.Plugs.FrontendStatic do end def call(conn, opts) do - IO.inspect("OPTS: #{inspect(opts)}") with false <- api_route?(conn.path_info), false <- invalid_path?(conn.path_info), fallback_frontend_type <- Map.get(opts, :frontend_type, :primary), @@ -81,7 +80,7 @@ defmodule Pleroma.Web.Plugs.FrontendStatic do end end - def preferred_or_fallback(conn, fallback), do: fallback + def preferred_or_fallback(_conn, fallback), do: fallback defp invalid_path?(list) do invalid_path?(list, :binary.compile_pattern(["/", "\\", ":", "\0"])) @@ -100,7 +99,6 @@ defmodule Pleroma.Web.Plugs.FrontendStatic do defp call_static(conn, opts, from) do opts = Map.put(opts, :from, from) - IO.inspect(opts, label: "opts") Plug.Static.call(conn, opts) end end