mirror of
1
Fork 0

[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
1 changed files with 1 additions and 1 deletions

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