[bugfix] Use reblogged status in notification, instead of wrapper status (#775)

This commit is contained in:
Blackle Morisanchetto 2022-08-29 05:06:37 -04:00 committed by GitHub
parent 969c194fcd
commit 3ce26a60f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -742,6 +742,11 @@ func (c *converter) NotificationToAPINotification(ctx context.Context, n *gtsmod
}
}
if apiStatus != nil && apiStatus.Reblog != nil {
// use the actual reblog status for the notifications endpoint
apiStatus = apiStatus.Reblog.Status
}
return &model.Notification{
ID: n.ID,
Type: string(n.NotificationType),