summaryrefslogtreecommitdiff
path: root/internal/typeutils/internaltofrontend.go
diff options
context:
space:
mode:
authorLibravatar Blackle Morisanchetto <isabelle@blackle-mori.com>2022-08-29 05:06:37 -0400
committerLibravatar GitHub <noreply@github.com>2022-08-29 11:06:37 +0200
commit3ce26a60f8259c2ac8dea415fc61f08506de9512 (patch)
treefc6bf0cfbfbb795f5264b62545610c7c3b9db70e /internal/typeutils/internaltofrontend.go
parent[bugfix] Relax outgoing http request queue (#760) (diff)
downloadgotosocial-3ce26a60f8259c2ac8dea415fc61f08506de9512.tar.xz
[bugfix] Use reblogged status in notification, instead of wrapper status (#775)
Diffstat (limited to 'internal/typeutils/internaltofrontend.go')
-rw-r--r--internal/typeutils/internaltofrontend.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/typeutils/internaltofrontend.go b/internal/typeutils/internaltofrontend.go
index 7da54f979..d96441892 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),