aboutsummaryrefslogtreecommitdiffstats
path: root/tests/integration/webfinger_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/webfinger_test.go')
-rw-r--r--tests/integration/webfinger_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/webfinger_test.go b/tests/integration/webfinger_test.go
index 226c25615f..f67abdbc2a 100644
--- a/tests/integration/webfinger_test.go
+++ b/tests/integration/webfinger_test.go
@@ -52,7 +52,7 @@ func TestWebfinger(t *testing.T) {
var jrd webfingerJRD
DecodeJSON(t, resp, &jrd)
assert.Equal(t, "acct:user2@"+appURL.Host, jrd.Subject)
- assert.ElementsMatch(t, []string{user.HTMLURL(), appURL.String() + "api/v1/activitypub/user/" + url.PathEscape(user.Name)}, jrd.Aliases)
+ assert.ElementsMatch(t, []string{user.HTMLURL(), appURL.String() + "api/v1/activitypub/user-id/" + fmt.Sprint(user.ID)}, jrd.Aliases)
req = NewRequest(t, "GET", fmt.Sprintf("/.well-known/webfinger?resource=acct:%s@%s", user.LowerName, "unknown.host"))
MakeRequest(t, req, http.StatusBadRequest)