mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-22 18:22:11 +00:00
[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 a new issue