mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-05 08:30:59 +00:00
[bugfix] Use reblogged status in notification, instead of wrapper status (#775)
This commit is contained in:
parent
969c194fcd
commit
3ce26a60f8
1 changed files with 5 additions and 0 deletions
|
@ -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