logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/
commit: fd177a363be9fbaac11bc37893ad8a2acbe9bd02
parent 8827e511704b97ee84fa61c68bdfcb5868518dfc
Author: nicole mikołajczyk <git@mkljczk.pl>
Date:   Fri, 28 Nov 2025 15:59:07 +0100

cleanup

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>

Diffstat:

Mconfig/description.exs8++++----
Mlib/pleroma/web/plugs/frontend_static.ex4+---
2 files changed, 5 insertions(+), 7 deletions(-)

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