summaryrefslogtreecommitdiff
path: root/internal/db/notification.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-11-25 15:33:21 +0000
committerLibravatar GitHub <noreply@github.com>2024-11-25 15:33:21 +0000
commita444adee979375ed5d7af38346029a3d90bc77eb (patch)
tree8ff7fedc012bdf242451c4d2c4a22c0a714b9b8f /internal/db/notification.go
parent[chore] Bump tooling versions, bump go -> v1.23.0 (#3258) (diff)
downloadgotosocial-a444adee979375ed5d7af38346029a3d90bc77eb.tar.xz
[bugfix] notification types missing from link header (#3571)
* ensure notification types get included in link header query for notifications * fix type query keys
Diffstat (limited to 'internal/db/notification.go')
-rw-r--r--internal/db/notification.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/db/notification.go b/internal/db/notification.go
index c962023be..c608261dc 100644
--- a/internal/db/notification.go
+++ b/internal/db/notification.go
@@ -21,6 +21,7 @@ import (
"context"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
+ "github.com/superseriousbusiness/gotosocial/internal/paging"
)
// Notification contains functions for creating and getting notifications.
@@ -29,7 +30,7 @@ type Notification interface {
//
// Returned notifications will be ordered ID descending (ie., highest/newest to lowest/oldest).
// If types is empty, *all* notification types will be included.
- GetAccountNotifications(ctx context.Context, accountID string, maxID string, sinceID string, minID string, limit int, types []gtsmodel.NotificationType, excludeTypes []gtsmodel.NotificationType) ([]*gtsmodel.Notification, error)
+ GetAccountNotifications(ctx context.Context, accountID string, page *paging.Page, types []gtsmodel.NotificationType, excludeTypes []gtsmodel.NotificationType) ([]*gtsmodel.Notification, error)
// GetNotificationByID returns one notification according to its id.
GetNotificationByID(ctx context.Context, id string) (*gtsmodel.Notification, error)