From 297b6eeaaa136f9166e6f5937b5fca917e12fb5b Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Tue, 3 Oct 2023 14:59:30 +0100 Subject: [chore] internal/ap: add pollable AS types, code reformatting, general niceties (#2248) --- internal/api/activitypub/users/inboxpost_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/api/activitypub') diff --git a/internal/api/activitypub/users/inboxpost_test.go b/internal/api/activitypub/users/inboxpost_test.go index d26dae513..7660050df 100644 --- a/internal/api/activitypub/users/inboxpost_test.go +++ b/internal/api/activitypub/users/inboxpost_test.go @@ -486,7 +486,7 @@ func (suite *InboxPostTestSuite) TestPostEmptyCreate() { requestingAccount, targetAccount, http.StatusBadRequest, - `{"error":"Bad Request: incoming Activity Create did not have required id property set"}`, + `{"error":"Bad Request: missing ActivityStreams id property"}`, suite.signatureCheck, ) } @@ -511,7 +511,7 @@ func (suite *InboxPostTestSuite) TestPostFromBlockedAccount() { requestingAccount, targetAccount, http.StatusForbidden, - `{"error":"Forbidden"}`, + `{"error":"Forbidden: blocked"}`, suite.signatureCheck, ) } @@ -555,7 +555,7 @@ func (suite *InboxPostTestSuite) TestPostUnauthorized() { requestingAccount, targetAccount, http.StatusUnauthorized, - `{"error":"Unauthorized"}`, + `{"error":"Unauthorized: not authenticated"}`, // Omit signature check middleware. ) } -- cgit v1.2.3