summaryrefslogtreecommitdiff
path: root/internal/api
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-04-03 13:57:07 +0100
committerLibravatar GitHub <noreply@github.com>2024-04-03 13:57:07 +0100
commit15ede4c1ea4e5a9f69b3f0ed72d94ce764ffed1d (patch)
treeb76e1fe10e2c900541776b02f1ef7f9aeb729340 /internal/api
parent[bugfix] Set domain for empty-domain Friendica accounts (#2800) (diff)
downloadgotosocial-15ede4c1ea4e5a9f69b3f0ed72d94ce764ffed1d.tar.xz
[bugfix] improved authenticate post inbox error handling (#2803)
* improved PostInboxScheme() error handling / logging in case of failed auth * dumbass kim. returning err instead of errWithCode... * add checks for the slightly changed error handling in tests, add notes in codebase about the odd way of working
Diffstat (limited to 'internal/api')
-rw-r--r--internal/api/activitypub/users/inboxpost_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/api/activitypub/users/inboxpost_test.go b/internal/api/activitypub/users/inboxpost_test.go
index 89e1cec41..9d863f234 100644
--- a/internal/api/activitypub/users/inboxpost_test.go
+++ b/internal/api/activitypub/users/inboxpost_test.go
@@ -590,7 +590,7 @@ func (suite *InboxPostTestSuite) TestPostUnauthorized() {
requestingAccount,
targetAccount,
http.StatusUnauthorized,
- `{"error":"Unauthorized: not authenticated"}`,
+ `{"error":"Unauthorized: http request wasn't signed or http signature was invalid: (verifier)"}`,
// Omit signature check middleware.
)
}