From: FloatingGhost Date: Fri, 14 Apr 2023 16:42:40 +0000 (+0100) Subject: ensure only pickable frontends can be returned X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=f12d3cce39e6bdfbe4aa8364ba1051a6b72155fc;p=akkoma ensure only pickable frontends can be returned --- diff --git a/lib/pleroma/web/plugs/frontend_static.ex b/lib/pleroma/web/plugs/frontend_static.ex index 1d6861456..41b8ba46b 100644 --- a/lib/pleroma/web/plugs/frontend_static.ex +++ b/lib/pleroma/web/plugs/frontend_static.ex @@ -78,7 +78,11 @@ defmodule Pleroma.Web.Plugs.FrontendStatic do :primary frontend -> - frontend + if Enum.member?(Pleroma.Config.get([:frontends, :pickable], []), frontend) do + frontend + else + :primary + end end end