diff options
author | 2022-06-10 10:56:49 +0200 | |
---|---|---|
committer | 2022-06-10 10:56:49 +0200 | |
commit | 2385b51d5851195f6c418e72c35d1526519f23b0 (patch) | |
tree | 62c9c011b63c393913fd48656a525fa6be0f8132 /internal/db/bundb/account_test.go | |
parent | [bugfix] Fix domain blocks get regression (#642) (diff) | |
download | gotosocial-2385b51d5851195f6c418e72c35d1526519f23b0.tar.xz |
[bugfix] Make accounts media_only query also work with pg (#643)
Diffstat (limited to 'internal/db/bundb/account_test.go')
-rw-r--r-- | internal/db/bundb/account_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/db/bundb/account_test.go b/internal/db/bundb/account_test.go index 33c6b7ee6..134e38940 100644 --- a/internal/db/bundb/account_test.go +++ b/internal/db/bundb/account_test.go @@ -40,6 +40,12 @@ func (suite *AccountTestSuite) TestGetAccountStatuses() { suite.Len(statuses, 5) } +func (suite *AccountTestSuite) TestGetAccountStatusesMediaOnly() { + statuses, err := suite.db.GetAccountStatuses(context.Background(), suite.testAccounts["local_account_1"].ID, 20, false, false, "", "", false, true, false) + suite.NoError(err) + suite.Len(statuses, 1) +} + func (suite *AccountTestSuite) TestGetAccountByIDWithExtras() { account, err := suite.db.GetAccountByID(context.Background(), suite.testAccounts["local_account_1"].ID) if err != nil { |