mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-28 04:23:32 -06:00
[bugfix] Rework notifs to use min_id for paging up (#1734)
This commit is contained in:
parent
a6ec2a5bc2
commit
4a012acd52
8 changed files with 160 additions and 84 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue