From d889d22d11b3c604f4bb0300f41e433eeb975d27 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Thu, 17 Oct 2024 20:05:05 +0800 Subject: [PATCH] :zap: Truncate notification embed posts --- pkg/internal/services/accounts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/services/accounts.go b/pkg/internal/services/accounts.go index 1973827..dea3efd 100644 --- a/pkg/internal/services/accounts.go +++ b/pkg/internal/services/accounts.go @@ -104,7 +104,7 @@ func NotifyPosterAccount(user models.Account, post models.Post, title, body stri Subtitle: subtitle, Body: body, Metadata: hyper.EncodeMap(map[string]any{ - "related_post": post, + "related_post": TruncatePostContent(post), }), IsRealtime: false, IsForcePush: true,