diff options
author | 2024-04-03 13:57:07 +0100 | |
---|---|---|
committer | 2024-04-03 13:57:07 +0100 | |
commit | 15ede4c1ea4e5a9f69b3f0ed72d94ce764ffed1d (patch) | |
tree | b76e1fe10e2c900541776b02f1ef7f9aeb729340 /internal/api | |
parent | [bugfix] Set domain for empty-domain Friendica accounts (#2800) (diff) | |
download | gotosocial-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.go | 2 |
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. ) } |