[bugfix] Don't copy ptr fields in caches (#2386)

This commit is contained in:
tobi
2023-11-27 16:39:44 +01:00
committed by GitHub
parent 0bb9b72334
commit 33ee61575f
12 changed files with 469 additions and 109 deletions

View File

@@ -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