more renamings

This commit is contained in:
Alexander Strizhakov 2020-01-10 19:49:40 +03:00
commit d933fd3d61
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
3 changed files with 18 additions and 12 deletions

View file

@ -802,7 +802,10 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do
configs = Pleroma.Repo.all(Config)
if configs == [] do
errors(conn, {:error, "To use dynamic configuration migrate your settings to database."})
errors(
conn,
{:error, "To use configuration from database migrate your settings to database."}
)
else
conn
|> put_view(ConfigView)
@ -847,7 +850,10 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do
if Pleroma.Config.get([:configurable_from_database]) do
:ok
else
errors(conn, {:error, "To use this endpoint you need to enable dynamic configuration."})
errors(
conn,
{:error, "To use this endpoint you need to enable configuration from database."}
)
end
end