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.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/db/notification.go b/internal/db/notification.go
index fd3affe90..c4860093a 100644
--- a/internal/db/notification.go
+++ b/internal/db/notification.go
@@ -33,6 +33,10 @@ type Notification interface {
// GetNotification returns one notification according to its id.
GetNotificationByID(ctx context.Context, id string) (*gtsmodel.Notification, Error)
+ // GetNotification gets one notification according to the provided parameters, if it exists.
+ // Since not all notifications are about a status, statusID can be an empty string.
+ GetNotification(ctx context.Context, notificationType gtsmodel.NotificationType, targetAccountID string, originAccountID string, statusID string) (*gtsmodel.Notification, Error)
+
// PutNotification will insert the given notification into the database.
PutNotification(ctx context.Context, notif *gtsmodel.Notification) error