forked from AkkomaGang/akkoma
ensure only pickable frontends can be returned
This commit is contained in:
parent
0d418fc9ba
commit
88876ce85b
1 changed files with 5 additions and 1 deletions
|
@ -78,7 +78,11 @@ def preferred_or_fallback(conn, :primary) do
|
|||
:primary
|
||||
|
||||
frontend ->
|
||||
if Enum.member?(Pleroma.Config.get([:frontends, :pickable], []), frontend) do
|
||||
frontend
|
||||
else
|
||||
:primary
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue