commit: 192ca3582ad9a2b0700431efd280faea0a6a6f17
parent 909cfc2ac5ff4cf16f6a04b5fb5dc84e38af4df5
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Wed, 10 Jun 2020 18:29:32 +0200
ConfigController: Remove db-config limit on reading
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/pleroma/web/admin_api/controllers/config_controller.ex b/lib/pleroma/web/admin_api/controllers/config_controller.ex
@@ -77,7 +77,7 @@ defmodule Pleroma.Web.AdminAPI.ConfigController do
end
def show(%{private: %{open_api_spex: %{params: %{only_db: true}}}} = conn, _) do
- with :ok <- configurable_from_database() do
+ with :ok <- :ok do
configs = Pleroma.Repo.all(ConfigDB)
render(conn, "index.json", %{
@@ -88,7 +88,7 @@ defmodule Pleroma.Web.AdminAPI.ConfigController do
end
def show(conn, _params) do
- with :ok <- configurable_from_database() do
+ with :ok <- :ok do
configs = ConfigDB.get_all_as_keyword()
merged =