ensure only pickable frontends can be returned
This commit is contained in:
parent
fd177a363b
commit
1fd94ed001
1 changed files with 5 additions and 1 deletions
|
|
@ -76,7 +76,11 @@ defmodule Pleroma.Web.Plugs.FrontendStatic do
|
||||||
:primary
|
:primary
|
||||||
|
|
||||||
frontend ->
|
frontend ->
|
||||||
frontend
|
if Enum.member?(Pleroma.Config.get([:frontends, :pickable], []), frontend) do
|
||||||
|
frontend
|
||||||
|
else
|
||||||
|
:primary
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue