From 33ee61575f2fc15c5a85c3fdbb3823a0cd22d25d Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 27 Nov 2023 16:39:44 +0100 Subject: [bugfix] Don't copy ptr fields in caches (#2386) --- internal/db/notification.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/db/notification.go') 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 -- cgit v1.2.3