diff options
| author | 2022-08-29 05:06:37 -0400 | |
|---|---|---|
| committer | 2022-08-29 11:06:37 +0200 | |
| commit | 3ce26a60f8259c2ac8dea415fc61f08506de9512 (patch) | |
| tree | fc6bf0cfbfbb795f5264b62545610c7c3b9db70e /internal/typeutils | |
| parent | [bugfix] Relax outgoing http request queue (#760) (diff) | |
| download | gotosocial-3ce26a60f8259c2ac8dea415fc61f08506de9512.tar.xz | |
[bugfix] Use reblogged status in notification, instead of wrapper status (#775)
Diffstat (limited to 'internal/typeutils')
| -rw-r--r-- | internal/typeutils/internaltofrontend.go | 5 | 
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), | 
