From 4a012acd5255585045babfb38202e9df4bb1fdee Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Thu, 4 May 2023 12:27:24 +0200 Subject: [bugfix] Rework notifs to use min_id for paging up (#1734) --- internal/processing/notification_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/processing/notification_test.go') diff --git a/internal/processing/notification_test.go b/internal/processing/notification_test.go index 054f52157..bf69fc9bc 100644 --- a/internal/processing/notification_test.go +++ b/internal/processing/notification_test.go @@ -32,7 +32,7 @@ type NotificationTestSuite struct { // get a notification where someone has liked our status func (suite *NotificationTestSuite) TestGetNotifications() { receivingAccount := suite.testAccounts["local_account_1"] - notifsResponse, err := suite.processor.NotificationsGet(context.Background(), suite.testAutheds["local_account_1"], []string{}, 10, "", "") + notifsResponse, err := suite.processor.NotificationsGet(context.Background(), suite.testAutheds["local_account_1"], "", "", "", 10, nil) suite.NoError(err) suite.Len(notifsResponse.Items, 1) notif, ok := notifsResponse.Items[0].(*apimodel.Notification) @@ -44,7 +44,7 @@ func (suite *NotificationTestSuite) TestGetNotifications() { suite.NotNil(notif.Status) suite.NotNil(notif.Status.Account) suite.Equal(receivingAccount.ID, notif.Status.Account.ID) - suite.Equal(`; rel="next", ; rel="prev"`, notifsResponse.LinkHeader) + suite.Equal(`; rel="next", ; rel="prev"`, notifsResponse.LinkHeader) } func TestNotificationTestSuite(t *testing.T) { -- cgit v1.2.3