diff options
author | 2023-05-04 12:27:24 +0200 | |
---|---|---|
committer | 2023-05-04 12:27:24 +0200 | |
commit | 4a012acd5255585045babfb38202e9df4bb1fdee (patch) | |
tree | cb8ed7d3fba01751de44fd96bdf905b967f93c7a /internal/db/notification.go | |
parent | [bugfix] Fix invalid og:description on account w/ empty note (#1733) (diff) | |
download | gotosocial-4a012acd5255585045babfb38202e9df4bb1fdee.tar.xz |
[bugfix] Rework notifs to use min_id for paging up (#1734)
Diffstat (limited to 'internal/db/notification.go')
-rw-r--r-- | internal/db/notification.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |