mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-10 04:47:29 -06:00
[bugfix] post counters should not include direct messages (#3554)
* [bugfix] post counters should not include direct messages #3504 The fix is relativly simple, it just adds a line to the relevant function which excludes all private posts. * Formating fix * mb
This commit is contained in:
parent
ffa67ac1ae
commit
9ace025da1
4 changed files with 11 additions and 8 deletions
|
|
@ -47,7 +47,7 @@ func (suite *InstanceTestSuite) TestCountInstanceUsersRemote() {
|
|||
func (suite *InstanceTestSuite) TestCountInstanceStatuses() {
|
||||
count, err := suite.db.CountInstanceStatuses(context.Background(), config.GetHost())
|
||||
suite.NoError(err)
|
||||
suite.Equal(20, count)
|
||||
suite.Equal(19, count)
|
||||
}
|
||||
|
||||
func (suite *InstanceTestSuite) TestCountInstanceStatusesRemote() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue