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.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/db/notification.go b/internal/db/notification.go
index d8291ae51..7d8258d93 100644
--- a/internal/db/notification.go
+++ b/internal/db/notification.go
@@ -32,4 +32,6 @@ type Notification interface {
GetNotifications(ctx context.Context, accountID string, limit int, maxID string, sinceID string) ([]*gtsmodel.Notification, Error)
// GetNotification returns one notification according to its id.
GetNotification(ctx context.Context, id string) (*gtsmodel.Notification, Error)
+ // ClearNotifications deletes every notification that pertain to the given accountID.
+ ClearNotifications(ctx context.Context, accountID string) Error
}