summaryrefslogtreecommitdiff
path: root/internal/db/notification.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/notification.go')
-rw-r--r--internal/db/notification.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/db/notification.go b/internal/db/notification.go
index 9ff459b9c..2e8f5ed1f 100644
--- a/internal/db/notification.go
+++ b/internal/db/notification.go
@@ -25,12 +25,13 @@ import (
// Notification contains functions for creating and getting notifications.
type Notification interface {
- // GetNotifications returns a slice of notifications that pertain to the given accountID.
+ // GetAccountNotifications 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, maxID string, sinceID string, minID string, limit int, excludeTypes []string) ([]*gtsmodel.Notification, error)
+ // If includeTypes is empty, *all* notification types will be included.
+ GetAccountNotifications(ctx context.Context, accountID string, maxID string, sinceID string, minID string, limit int, includeTypes []string, excludeTypes []string) ([]*gtsmodel.Notification, error)
- // GetNotification returns one notification according to its id.
+ // GetNotificationByID returns one notification according to its id.
GetNotificationByID(ctx context.Context, id string) (*gtsmodel.Notification, error)
// GetNotificationsByIDs returns a slice of notifications of the the provided IDs.