[bugfix] Use reblogged status in notification, instead of wrapper status (#775)
This commit is contained in:
parent
969c194fcd
commit
3ce26a60f8
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue