diff options
Diffstat (limited to 'lib/pleroma/frontend.ex')
-rw-r--r-- | lib/pleroma/frontend.ex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/frontend.ex b/lib/pleroma/frontend.ex index f6aa3629f..9aa27cbeb 100644 --- a/lib/pleroma/frontend.ex +++ b/lib/pleroma/frontend.ex @@ -9,6 +9,7 @@ defmodule Pleroma.Frontend do def get_config(:primary) do primary_fe_config = Pleroma.Config.get([:frontends, :primary], %{"name" => "pleroma"}) + static_enabled? = Pleroma.Config.get([:frontends, :static], false) {config, controller} = if primary_fe_config["name"] == "none" do @@ -21,7 +22,7 @@ defmodule Pleroma.Frontend do ])} end - %{"config" => config, "controller" => controller} + %{"config" => config, "controller" => controller, "static" => static_enabled?} end @spec file_path(String.t(), frontend_kind()) :: {:ok, String.t()} | {:error, String.t()} |