From 9e8480640bac2cae6af1ab532c7d390c54c999bd Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 15 Feb 2025 20:01:58 +0800 Subject: [PATCH] :necktie: Reply post no longer push subscriptions --- pkg/internal/services/posts.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/internal/services/posts.go b/pkg/internal/services/posts.go index c06fc05..81c735f 100644 --- a/pkg/internal/services/posts.go +++ b/pkg/internal/services/posts.go @@ -431,7 +431,11 @@ func NewPost(user models.Publisher, item models.Post) (models.Post, error) { } // Notify the subscriptions - if content, ok := item.Body["content"].(string); ok { + if item.ReplyID == nil { + content, ok := item.Body["content"].(string) + if !ok { + content = "Posted a post" + } var title *string title, _ = item.Body["title"].(*string) go func() {