👔 Reply post no longer push subscriptions

This commit is contained in:
LittleSheep 2025-02-15 20:01:58 +08:00
parent a48553fff9
commit 9e8480640b

View File

@ -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() {