From 3ce26a60f8259c2ac8dea415fc61f08506de9512 Mon Sep 17 00:00:00 2001 From: Blackle Morisanchetto Date: Mon, 29 Aug 2022 05:06:37 -0400 Subject: [PATCH] [bugfix] Use reblogged status in notification, instead of wrapper status (#775) --- internal/typeutils/internaltofrontend.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/typeutils/internaltofrontend.go b/internal/typeutils/internaltofrontend.go index 7da54f979e..d964418920 100644 --- 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),