Skip to content

Commit

Permalink
[bugfix] Use reblogged status in notification, instead of wrapper sta…
Browse files Browse the repository at this point in the history
…tus (#775)
  • Loading branch information
blackle authored Aug 29, 2022
1 parent 969c194 commit 3ce26a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/typeutils/internaltofrontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 3ce26a6

Please sign in to comment.