FrontendStatic: Work correctly for other frontend types.

This commit is contained in:
lain 2020-07-29 13:02:48 +02:00
commit 6a25f72a75
2 changed files with 28 additions and 0 deletions

View file

@ -30,6 +30,7 @@ defmodule Pleroma.Plugs.FrontendStatic do
opts
|> Keyword.put(:from, "__unconfigured_frontend_static_plug")
|> Plug.Static.init()
|> Map.put(:frontend_type, opts[:frontend_type])
end
def call(conn, opts) do