diff options
author | Kaizhe Huang <hkz85825915@gmail.com> | 2020-12-19 22:11:47 +1100 |
---|---|---|
committer | Kaizhe Huang <hkz85825915@gmail.com> | 2020-12-19 22:11:47 +1100 |
commit | 509f82e4d626bcaea0535bc5be28b5e5d067a37b (patch) | |
tree | 22cf9c182b2f8487b5dd8ec94fcfeff52420c671 | |
parent | 83cd7f2b5f269adf53b66b851fcea187cb914e28 (diff) | |
download | pleroma-509f82e4d626bcaea0535bc5be28b5e5d067a37b.tar.gz |
Add test for subscribe_address in JSON WebFinger response
-rw-r--r-- | test/pleroma/web/web_finger_test.exs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/pleroma/web/web_finger_test.exs b/test/pleroma/web/web_finger_test.exs index 96fc0bbaa..19f33a975 100644 --- a/test/pleroma/web/web_finger_test.exs +++ b/test/pleroma/web/web_finger_test.exs @@ -56,12 +56,13 @@ defmodule Pleroma.Web.WebFingerTest do {:ok, _data} = WebFinger.finger(user) end - test "returns the ActivityPub actor URI for an ActivityPub user with the ld+json mimetype" do + test "returns the ActivityPub actor URI and subscribe address for an ActivityPub user with the ld+json mimetype" do user = "kaniini@gerzilla.de" {:ok, data} = WebFinger.finger(user) assert data["ap_id"] == "https://gerzilla.de/channel/kaniini" + assert data["subscribe_address"] == "https://gerzilla.de/follow?f=&url={uri}" end test "it work for AP-only user" do |