From 1f8ecf1c15bd3e224c94e11754d5d04d6ed3f3bc Mon Sep 17 00:00:00 2001 From: Blackle Morisanchetto Date: Tue, 30 Aug 2022 05:42:52 -0400 Subject: [PATCH] [bugfix] Fix issue where the 'favourited' field of a notification's status is always false (#779) --- internal/typeutils/internaltofrontend.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/typeutils/internaltofrontend.go b/internal/typeutils/internaltofrontend.go index d96441892..30ce1420e 100644 --- a/internal/typeutils/internaltofrontend.go +++ b/internal/typeutils/internaltofrontend.go @@ -736,7 +736,7 @@ func (c *converter) NotificationToAPINotification(ctx context.Context, n *gtsmod } var err error - apiStatus, err = c.StatusToAPIStatus(ctx, n.Status, nil) + apiStatus, err = c.StatusToAPIStatus(ctx, n.Status, n.TargetAccount) if err != nil { return nil, fmt.Errorf("NotificationToapi: error converting status to api: %s", err) }