diff options
author | feld <feld@feld.me> | 2024-09-06 16:30:07 +0000 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2024-11-26 14:03:18 +0100 |
commit | 2977779e94cb34610d0c2369ecacf7d721ebc5ab (patch) | |
tree | d1e30c7375c05609850a873fa3a7d5814de2f8fc /test | |
parent | ced6b10c70769e39ee7d3b6a3fe63b8c2aea3ec0 (diff) | |
download | pleroma-2977779e94cb34610d0c2369ecacf7d721ebc5ab.tar.gz pleroma-2977779e94cb34610d0c2369ecacf7d721ebc5ab.zip |
Merge branch 'well-known' into 'develop'
NodeInfo: Accept application/activity+json requests
See merge request pleroma/pleroma!4242
Diffstat (limited to 'test')
-rw-r--r-- | test/pleroma/web/node_info_test.exs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/pleroma/web/node_info_test.exs b/test/pleroma/web/node_info_test.exs index f474220be..afe4ebb36 100644 --- a/test/pleroma/web/node_info_test.exs +++ b/test/pleroma/web/node_info_test.exs @@ -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 |