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

This commit is contained in:
Blackle Morisanchetto 2022-08-30 05:42:52 -04:00 committed by GitHub
parent 47152c2706
commit 1f8ecf1c15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -736,7 +736,7 @@ func (c *converter) NotificationToAPINotification(ctx context.Context, n *gtsmod
} }
var err error var err error
apiStatus, err = c.StatusToAPIStatus(ctx, n.Status, nil) apiStatus, err = c.StatusToAPIStatus(ctx, n.Status, n.TargetAccount)
if err != nil { if err != nil {
return nil, fmt.Errorf("NotificationToapi: error converting status to api: %s", err) return nil, fmt.Errorf("NotificationToapi: error converting status to api: %s", err)
} }