Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Post History

81%
+7 −0
Q&A Comments count includes deleted comments, which it shouldn't

Using this post purely as an example, because I'm quite sure that the problem is general. Observe: At first, we are told that there are "4 comments": Expanding inline, the summary says 4 of...

1 answer  ·  posted 2y ago by Canina‭  ·  edited 1y ago by Monica Cellio‭

#2: Post edited by user avatar Monica Cellio‭ · 2022-12-26T03:40:33Z (over 1 year ago)
#1: Initial revision by user avatar Canina‭ · 2022-02-04T17:04:35Z (about 2 years ago)
Comments count includes deleted comments, which it shouldn't
Using [this post](https://meta.codidact.com/posts/276881/276996#answer-276996) purely as an example, because I'm quite sure that the problem is general. Observe:

At first, we are told that there are "4 comments":

> ![Screenshot showing "4 comments"](https://meta.codidact.com/uploads/AoTmdRXehttMsawGhvnzynJ6)

Expanding inline, the summary says 4 of 4 comments are being shown, so where are the other three?

> ![Screenshot showing "showing 4 of 4 comments" but only showing one comment](https://meta.codidact.com/uploads/dKCS8dpt8t56nTh92hcdYaz5)

The mystery is resolved once one goes to the full thread page, instead of looking at the inline view:

> ![Screenshot showing "Skipping 3 deleted comments"](https://meta.codidact.com/uploads/PVu1oQo2N56GHF6ET3k6gWoD)

**The number of comments as being reported in the inline comments view / post UI should match what's actually visible to the user.** In the above example, the "General comments" thread would be reported as having only one comment; if one navigates to the comment thread page, *then* it might be reasonable to also indicate the existence of the three now-deleted comments, but since those are invisible to pretty much everyone, they shouldn't be included in the comment count.