diff --git a/pkg/internal/services/subscriptions.go b/pkg/internal/services/subscriptions.go index 6b16763..a94b092 100644 --- a/pkg/internal/services/subscriptions.go +++ b/pkg/internal/services/subscriptions.go @@ -175,11 +175,16 @@ func NotifyUserSubscription(poster models.Publisher, item models.Post, content s }) } + metadata := map[string]any{ + "related_post": TruncatePostContent(item), + } + err := authkit.NotifyUserBatch(gap.Nx, userIDs, pushkit.Notification{ Topic: "interactive.subscription", Title: nTitle, Subtitle: nSubtitle, Body: body, + Metadata: metadata, Priority: 3, })