Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk 2025-11-28 15:59:07 +01:00
commit fd177a363b
2 changed files with 5 additions and 7 deletions

View file

@ -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."
}
]
},

View file

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