logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/
commit: 1fd94ed001c6413301b4c1cd1fb4c8f7bf5f4867
parent fd177a363be9fbaac11bc37893ad8a2acbe9bd02
Author: FloatingGhost <hannah@coffee-and-dreams.uk>
Date:   Fri, 14 Apr 2023 17:42:40 +0100

ensure only pickable frontends can be returned

Diffstat:

Mlib/pleroma/web/plugs/frontend_static.ex6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/pleroma/web/plugs/frontend_static.ex b/lib/pleroma/web/plugs/frontend_static.ex @@ -76,7 +76,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