mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[chore] internal/ap: add pollable AS types, code reformatting, general niceties (#2248)
This commit is contained in:
@@ -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.
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user