diff options
author | 2024-06-10 18:42:41 +0000 | |
---|---|---|
committer | 2024-06-10 19:42:41 +0100 | |
commit | fd6637df4aeed721442bff6dfbce9bdd1b5ac7b8 (patch) | |
tree | 8d4ddffdd8742b3cd7aa0be5e26ea235e76b127d /internal/processing/account/move_test.go | |
parent | [chore] Roll back use of `(created)` pseudo-header pending #2991 (#2992) (diff) | |
download | gotosocial-fd6637df4aeed721442bff6dfbce9bdd1b5ac7b8.tar.xz |
[bugfix] boost and account recursion (#2982)
* fix possible infinite recursion if moved accounts are self-referential
* adds a defensive check for a boost being a boost of a boost wrapper
* add checks on input for a boost of a boost
* remove unnecessary check
* add protections on account move to prevent move recursion loops
* separate status conversion without boost logic into separate function to remove risk of recursion
* move boost check to boost function itself
* formatting
* use error 422 instead of 500
* use gtserror not standard errors package for error creation
Diffstat (limited to 'internal/processing/account/move_test.go')
-rw-r--r-- | internal/processing/account/move_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/processing/account/move_test.go b/internal/processing/account/move_test.go index c1a931252..9d06829ca 100644 --- a/internal/processing/account/move_test.go +++ b/internal/processing/account/move_test.go @@ -161,7 +161,7 @@ func (suite *MoveTestSuite) TestMoveAccountBadPassword() { MovedToURI: targetAcct.URI, }, ) - suite.EqualError(err, "invalid password provided in account Move request") + suite.EqualError(err, "invalid password provided in Move request") } func TestMoveTestSuite(t *testing.T) { |