diff options
Diffstat (limited to 'internal/db/notification.go')
-rw-r--r-- | internal/db/notification.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/db/notification.go b/internal/db/notification.go index 5f8766252..ab8b5cc6d 100644 --- a/internal/db/notification.go +++ b/internal/db/notification.go @@ -37,6 +37,9 @@ type Notification interface { // 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) + // PopulateNotification ensures that the notification's struct fields are populated. + PopulateNotification(ctx context.Context, notif *gtsmodel.Notification) error + // PutNotification will insert the given notification into the database. PutNotification(ctx context.Context, notif *gtsmodel.Notification) error |