gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 1f8ecf1c15bd3e224c94e11754d5d04d6ed3f3bc
parent 47152c2706417f89a9d9698d4118c095962d105f
Author: Blackle Morisanchetto <isabelle@blackle-mori.com>
Date:   Tue, 30 Aug 2022 05:42:52 -0400

[bugfix] Fix issue where the 'favourited' field of a notification's status is always false (#779)


Diffstat:
Minternal/typeutils/internaltofrontend.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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) }