Remove `/statusnet/config`

This commit is contained in:
Egor Kislitsyn 2020-06-29 17:00:37 +04:00
parent 8693e01799
commit 67d92ac7b7
No known key found for this signature in database
GPG Key ID: 1B49CB15B71E7805
2 changed files with 0 additions and 15 deletions

View File

@ -517,9 +517,6 @@ defmodule Pleroma.Web.Router do
pipe_through(:config)
get("/pleroma/frontend_configurations", TwitterAPI.UtilController, :frontend_configurations)
# Deprecated
get("/statusnet/config", TwitterAPI.UtilController, :config)
end
scope "/api", Pleroma.Web do

View File

@ -81,18 +81,6 @@ def notifications_read(%{assigns: %{user: user}} = conn, %{"id" => notification_
end
end
# Deprecated in favor of `/nodeinfo`
# https://git.pleroma.social/pleroma/pleroma/-/merge_requests/2327
# https://git.pleroma.social/pleroma/pleroma-fe/-/merge_requests/1084
def config(conn, _params) do
json(conn, %{
site: %{
textlimit: to_string(Config.get([:instance, :limit])),
vapidPublicKey: Keyword.get(Pleroma.Web.Push.vapid_config(), :public_key)
}
})
end
def frontend_configurations(conn, _params) do
config =
Pleroma.Config.get(:frontend_configurations, %{})