mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
Preloading: Fix nodeinfo url.
This commit is contained in:
parent
4a7a34ae8c
commit
a2002ebb63
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ defmodule Pleroma.Web.Preload.Providers.Instance do
|
||||||
@behaviour Provider
|
@behaviour Provider
|
||||||
@instance_url :"/api/v1/instance"
|
@instance_url :"/api/v1/instance"
|
||||||
@panel_url :"/instance/panel.html"
|
@panel_url :"/instance/panel.html"
|
||||||
@nodeinfo_url :"/nodeinfo/2.0"
|
@nodeinfo_url :"/nodeinfo/2.0.json"
|
||||||
|
|
||||||
@impl Provider
|
@impl Provider
|
||||||
def generate_terms(_params) do
|
def generate_terms(_params) do
|
||||||
|
|
|
@ -25,7 +25,7 @@ defmodule Pleroma.Web.Preload.Providers.InstanceTest do
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
test "it renders the node_info", %{"/nodeinfo/2.0": nodeinfo} do
|
test "it renders the node_info", %{"/nodeinfo/2.0.json": nodeinfo} do
|
||||||
%{
|
%{
|
||||||
metadata: metadata,
|
metadata: metadata,
|
||||||
version: "2.0"
|
version: "2.0"
|
||||||
|
|
Loading…
Reference in a new issue