Preloading: Fix nodeinfo url.

This commit is contained in:
lain 2020-06-26 14:48:23 +02:00
parent 4a7a34ae8c
commit a2002ebb63
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ defmodule Pleroma.Web.Preload.Providers.Instance do
@behaviour Provider
@instance_url :"/api/v1/instance"
@panel_url :"/instance/panel.html"
@nodeinfo_url :"/nodeinfo/2.0"
@nodeinfo_url :"/nodeinfo/2.0.json"
@impl Provider
def generate_terms(_params) do

View file

@ -25,7 +25,7 @@ test "it renders the panel", %{"/instance/panel.html": panel} do
)
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,
version: "2.0"