From 9265a09a656196e2a94c73e32c7b79399411a79e Mon Sep 17 00:00:00 2001 From: Adelie Paull <1208865+i-am-a-paull@users.noreply.github.com> Date: Mon, 2 May 2022 09:23:37 -0400 Subject: [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 --- internal/db/bundb/basic_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/db') 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() { -- cgit v1.3