mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 03:17:51 +00:00
ensure only pickable frontends can be returned
This commit is contained in:
parent
ba59fdcd54
commit
f12d3cce39
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue