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.

Comment threads remain active even if all comments are deleted

+2
−0

Issue raised on GitHub


In this answer there's a "General comments" thread, but all the comments are deleted.

This is related to - but IMO not the same as - this other post, in which it's discussed if showing that some comments are deleted is useful or not. That discussion is focused on the case where there are still some comments in the thread, but in this specific case, all the comments are gone, and I'm really not sure if the thread should remain active.

Maybe if someone wants to add a comment related to the same subject (considering that the thread has a meaningful title), keeping the thread active would make sense.

On the other hand, why not remove the thread in this case? If someone wants to add anything, just create another thread. Not sure if keeping the thread active will bring any benefits.

I've just found another case. Didn't search for more, though.


As a side note, I've added a comment to that thread and it worked (I've deleted it, as it was only a test).

But now, in the answer it says that there are 3 comments:

3 comments

And in the thread page, it says there are 4:

4 comments

History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

my understanding of the bug. (3 comments)

1 answer

+2
−0

This bug appears to be fixed, but it is not. The following works for me, but the original poster of the answer can still see the deleted thread.

How it seems to someone who didn't post the original question/answer

Note that newer threads disappear from view (at least for non-moderators) when the last comment is deleted.

As a test, I added a comment in the "General comments" section on the example answer mentioned. Deleting it resulted in the comment thread disappearing (after a page reload, as expected for comment threads, to avoid confusing the user).

So it appears this bug is fixed and any old empty threads can be removed by adding a comment and then deleting it. However, this only solves the problem for people other than the poster of the post (question/answer), who can still see the deleted thread.

How it seems to the poster of the original question/answer

As a test, I added a comment thread below one of my own questions. I then deleted the comments, leaving an empty thread. I refreshed the page and the empty thread disappeared as expected.

However, I now have a "Show more" button below my post that is not visible to anyone else:

The bottom of my question, showing a "Show more" button

Clicking on "Show more" reveals the empty comment thread that is hidden from everyone else:

The deleted thread showing highlighted red after clicking "Show more"

Clicking on the empty thread title expands the thread to show that I cannot see the deleted comment inside it:

The expanded deleted thread showing "skipping 1 deleted comment"

Clicking on "See the whole thread" opens the empty thread in a new page:

The comment thread in its own page, showing "You cannot reply to this thread because it has been deleted"

This informs me that I cannot add any more comments.

There seems to be no purpose to allowing me to see this empty thread that I cannot read the deleted comments of and cannot add new comments to, so this seems to be a bug.

I've raised an issue on GitHub.

History
Why does this post require moderator attention?
You might want to add some details to your flag.

1 comment thread

Yes, the thread isn't active anymore, but I can still see it. At the bottom of the [example answer](h... (7 comments)

Sign up to answer this question »