diff options
author | 2022-05-02 09:23:37 -0400 | |
---|---|---|
committer | 2022-05-02 15:23:37 +0200 | |
commit | 9265a09a656196e2a94c73e32c7b79399411a79e (patch) | |
tree | 6cda0aa926f02409f3c3cb4f00c5ef7634b44b53 /internal/db/bundb/basic_test.go | |
parent | [chore] Update all but bun libraries (#526) (diff) | |
download | gotosocial-9265a09a656196e2a94c73e32c7b79399411a79e.tar.xz |
[bugfix] Allow self-boosting for any visibility but direct (#510)
* create visibility filter for boostability and allow self-boosting for any visbility but direct messages
* add a followers-only status to local_account_2
* fix typo in comment
* add license header, unwrap errors, be explicit about non-boostable visibility settings to avoid rogue boosting from miscoded clients, use ID compare for checking if self-boosting
* add tests for statusboostable filter
* fix tests that were affected by adding a new status to the test data
* fix the rest of tests affected by adding a status to the textrig data
Diffstat (limited to 'internal/db/bundb/basic_test.go')
-rw-r--r-- | internal/db/bundb/basic_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/bundb/basic_test.go b/internal/db/bundb/basic_test.go index 2719f1bb8..f3c4580c8 100644 --- a/internal/db/bundb/basic_test.go +++ b/internal/db/bundb/basic_test.go @@ -43,7 +43,7 @@ func (suite *BasicTestSuite) TestGetAllStatuses() { s := []*gtsmodel.Status{} err := suite.db.GetAll(context.Background(), &s) suite.NoError(err) - suite.Len(s, 15) + suite.Len(s, 16) } func (suite *BasicTestSuite) TestGetAllNotNull() { |