Omit non-positive SEO comment counts (#11508)

This commit is contained in:
Michael Black
2026-08-19 20:15:18 -05:00
committed by GitHub
parent 6406a2ef4d
commit 674f73b813
2 changed files with 37 additions and 5 deletions
+1 -4
View File
@@ -554,11 +554,8 @@ func buildPostNode(pv *appbsky.FeedDefs_PostView, replies []*appbsky.FeedDefs_Th
}
}
if pv.ReplyCount != nil {
if pv.ReplyCount != nil && *pv.ReplyCount > 0 {
node.CommentCount = pv.ReplyCount
} else {
zero := int64(0)
node.CommentCount = &zero
}
if !embedHidden {