mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 18:17:55 +00:00
Remove /statusnet/config
This commit is contained in:
parent
8693e01799
commit
67d92ac7b7
|
@ -517,9 +517,6 @@ defmodule Pleroma.Web.Router do
|
||||||
pipe_through(:config)
|
pipe_through(:config)
|
||||||
|
|
||||||
get("/pleroma/frontend_configurations", TwitterAPI.UtilController, :frontend_configurations)
|
get("/pleroma/frontend_configurations", TwitterAPI.UtilController, :frontend_configurations)
|
||||||
|
|
||||||
# Deprecated
|
|
||||||
get("/statusnet/config", TwitterAPI.UtilController, :config)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
scope "/api", Pleroma.Web do
|
scope "/api", Pleroma.Web do
|
||||||
|
|
|
@ -81,18 +81,6 @@ defmodule Pleroma.Web.TwitterAPI.UtilController do
|
||||||
end
|
end
|
||||||
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
|
def frontend_configurations(conn, _params) do
|
||||||
config =
|
config =
|
||||||
Pleroma.Config.get(:frontend_configurations, %{})
|
Pleroma.Config.get(:frontend_configurations, %{})
|
||||||
|
|
Loading…
Reference in a new issue