NodeInfo: Accept application/activity+json requests

This commit is contained in:
Mark Felder 2024-08-30 15:25:21 -04:00
commit 4ae17c6294
3 changed files with 15 additions and 1 deletions

View file

@ -24,6 +24,19 @@ defmodule Pleroma.Web.NodeInfoTest do
|> get(href)
|> json_response(200)
end)
accept_types = [
"application/activity+json",
"application/json",
"application/jrd+json"
]
for type <- accept_types do
conn
|> put_req_header("accept", type)
|> get("/.well-known/nodeinfo")
|> json_response(200)
end
end
test "nodeinfo shows staff accounts", %{conn: conn} do