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/db/notification.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/db/notification.go') diff --git a/internal/db/notification.go b/internal/db/notification.go index c4860093a..c17cf3d93 100644 --- a/internal/db/notification.go +++ b/internal/db/notification.go @@ -28,7 +28,7 @@ type Notification interface { // GetNotifications returns a slice of notifications that pertain to the given accountID. // // Returned notifications will be ordered ID descending (ie., highest/newest to lowest/oldest). - GetAccountNotifications(ctx context.Context, accountID string, excludeTypes []string, limit int, maxID string, sinceID string) ([]*gtsmodel.Notification, Error) + GetAccountNotifications(ctx context.Context, accountID string, maxID string, sinceID string, minID string, limit int, excludeTypes []string) ([]*gtsmodel.Notification, Error) // GetNotification returns one notification according to its id. GetNotificationByID(ctx context.Context, id string) (*gtsmodel.Notification, Error) -- cgit v1.2.3