diff options
author | feld <feld@feld.me> | 2024-09-06 16:30:07 +0000 |
---|---|---|
committer | feld <feld@feld.me> | 2024-09-06 16:30:07 +0000 |
commit | bb0cb06d8a3a9e97d3b39d712ee5a7147c25ee84 (patch) | |
tree | cf4c295c347ce163e1347f6dd690ade2fdac8885 /test | |
parent | 80f3e507d4cbddc8f1c0dc28752df0a38a83236e (diff) | |
parent | 4ae17c62944eab89acfa96a0912819093c872436 (diff) | |
download | pleroma-bb0cb06d8a3a9e97d3b39d712ee5a7147c25ee84.tar.gz pleroma-bb0cb06d8a3a9e97d3b39d712ee5a7147c25ee84.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 |