1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-11-17 18:49:15 +00:00

ensure only pickable frontends can be returned

This commit is contained in:
FloatingGhost 2023-04-14 17:42:40 +01:00
parent ba59fdcd54
commit f12d3cce39

View file

@ -78,7 +78,11 @@ def preferred_or_fallback(conn, :primary) do
:primary
frontend ->
frontend
if Enum.member?(Pleroma.Config.get([:frontends, :pickable], []), frontend) do
frontend
else
:primary
end
end
end