diff options
Diffstat (limited to 'internal/db/bundb')
-rw-r--r-- | internal/db/bundb/timeline.go | 2 | ||||
-rw-r--r-- | internal/db/bundb/timeline_test.go | 8 |
2 files changed, 3 insertions, 7 deletions
diff --git a/internal/db/bundb/timeline.go b/internal/db/bundb/timeline.go index 35b754d73..d15c07e9c 100644 --- a/internal/db/bundb/timeline.go +++ b/internal/db/bundb/timeline.go @@ -124,7 +124,7 @@ func (t *timelineDB) GetHomeTimeline(ctx context.Context, accountID string, maxI return statuses, nil } -func (t *timelineDB) GetPublicTimeline(ctx context.Context, accountID string, maxID string, sinceID string, minID string, limit int, local bool) ([]*gtsmodel.Status, db.Error) { +func (t *timelineDB) GetPublicTimeline(ctx context.Context, maxID string, sinceID string, minID string, limit int, local bool) ([]*gtsmodel.Status, db.Error) { // Ensure reasonable if limit < 0 { limit = 0 diff --git a/internal/db/bundb/timeline_test.go b/internal/db/bundb/timeline_test.go index 8822879dd..9b6365621 100644 --- a/internal/db/bundb/timeline_test.go +++ b/internal/db/bundb/timeline_test.go @@ -35,23 +35,19 @@ type TimelineTestSuite struct { } func (suite *TimelineTestSuite) TestGetPublicTimeline() { - viewingAccount := suite.testAccounts["local_account_1"] - - s, err := suite.db.GetPublicTimeline(context.Background(), viewingAccount.ID, "", "", "", 20, false) + s, err := suite.db.GetPublicTimeline(context.Background(), "", "", "", 20, false) suite.NoError(err) suite.Len(s, 6) } func (suite *TimelineTestSuite) TestGetPublicTimelineWithFutureStatus() { - viewingAccount := suite.testAccounts["local_account_1"] - futureStatus := getFutureStatus() if err := suite.db.Put(context.Background(), futureStatus); err != nil { suite.FailNow(err.Error()) } - s, err := suite.db.GetPublicTimeline(context.Background(), viewingAccount.ID, "", "", "", 20, false) + s, err := suite.db.GetPublicTimeline(context.Background(), "", "", "", 20, false) suite.NoError(err) suite.Len(s, 6) |