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 @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

View File

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