Users are discussing a UX issue in Discourse where the number of unread replies shown in the topic list differs significantly from the actual number of visible replies, due to deleted posts. TheBestPessimist highlights that 155 unread replies are shown, but only 3 are visible, questioning whether deleted replies should be excluded from the unread count. sam explains that counting unread posts is computationally expensive and currently avoids counting deleted ones, but this leads to misleading high unread numbers. TheBestPessimist suggests ignoring deleted replies entirely or capping the count. tomtjes and Firepup650 confirm the issue is common and confusing, especially when topics have many deleted replies due to automated cleanup. Firepup650 notes that the discrepancy is particularly jarring when a topic shows over 600 unread replies but only one visible reply. Lilly adds that this is common in long-running forums like Meta, where posts are auto-deleted after a period. Firepup650 also confirms that whispers trigger the same issue.
Not sure how this should be changed in discourse, but those 2 numbers are very different and 155 is misleading since all the replies were deleted. Would it make sense to not show the “number of deleted replies” when counting the “number of unread replies” ?
We have had this reported a few times before, it is fiendishly hard to fix.
If a large number of posts are deleted then unread count is artificially incredibly high. We could I guess do a client fix that caps numbers but it just replaces imperfect with more imperfect.
Problem with counting deleted replies is that there is no cheap way of do it. You may have read 17 of the 32 deleted replies.
lots of posts are auto deleted via general forum maintenance here (ie: “all replies to this topic will be deleted after x time”) , since Meta has been around since the beginning of Discourse.