Truncate notification embed posts

This commit is contained in:
LittleSheep 2024-10-17 20:05:05 +08:00
parent 89b495577e
commit d889d22d11

View File

@ -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,