gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 3ce26a60f8259c2ac8dea415fc61f08506de9512
parent 969c194fcd8ea277a49244a6bf00ed92f4df4e09
Author: Blackle Morisanchetto <isabelle@blackle-mori.com>
Date:   Mon, 29 Aug 2022 05:06:37 -0400

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


Diffstat:
Minternal/typeutils/internaltofrontend.go | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/internal/typeutils/internaltofrontend.go b/internal/typeutils/internaltofrontend.go @@ -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),