ensure only pickable frontends can be returned
This commit is contained in:
parent
ba59fdcd54
commit
f12d3cce39
|
@ -78,7 +78,11 @@ def preferred_or_fallback(conn, :primary) do
|
||||||
:primary
|
:primary
|
||||||
|
|
||||||
frontend ->
|
frontend ->
|
||||||
|
if Enum.member?(Pleroma.Config.get([:frontends, :pickable], []), frontend) do
|
||||||
frontend
|
frontend
|
||||||
|
else
|
||||||
|
:primary
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue