# 未读回复数与主题回复数不同，原因是回复被删除

**URL:** <https://meta.discourse.org/t/number-of-unread-replies-is-different-than-number-of-topic-replies-due-to-reply-deletions/142244>\
**Category:** UX\
**Created:** [2020年二月21日 11:00 UTC](https://meta.discourse.org/t/number-of-unread-replies-is-different-than-number-of-topic-replies-due-to-reply-deletions/142244 "2020-02-21T11:00:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheBestPessimist](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thebestpessimist/32/247704_2.png) [@TheBestPessimist](https://meta.discourse.org/u/TheBestPessimist)\
**Post date:** [2020年二月21日 11:00 UTC](https://meta.discourse.org/t/number-of-unread-replies-is-different-than-number-of-topic-replies-due-to-reply-deletions/142244/1 "2020-02-21T11:00:39Z")

</div>

现在我有一个话题，显示有 155 条未读回复，但在回复列中我只能看到 3 条。

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/4/d4f2db11e4ff439bcb17b023548c4ee27b59a90e.png)

我不确定在 Discourse 中应该如何修改这个问题，但这两个数字差异很大，而且 155 这个数字具有误导性，因为所有回复都已被删除。在统计“未读回复数”时，是否应该不将“已删除回复数”计算在内？

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2020年二月22日 00:06 UTC](https://meta.discourse.org/t/number-of-unread-replies-is-different-than-number-of-topic-replies-due-to-reply-deletions/142244/2 "2020-02-22T00:06:20Z")

</div>

我们之前已经收到过几次此类报告，这个问题极难修复。

如果大量帖子被删除，未读数量会被人为地变得异常高。我们或许可以在客户端进行修复，对数字设置上限，但这只是用一种不完美替代另一种更不完美。

统计已删除回复的问题在于，没有低成本的方法来实现。你可能已经阅读了 32 条已删除回复中的 17 条。

---

<div class="post-metadata">

**Author:** ![TheBestPessimist](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thebestpessimist/32/247704_2.png) [@TheBestPessimist](https://meta.discourse.org/u/TheBestPessimist)\
**Post date:** [2020年二月22日 05:07 UTC](https://meta.discourse.org/t/number-of-unread-replies-is-different-than-number-of-topic-replies-due-to-reply-deletions/142244/3 "2020-02-22T05:07:53Z")

</div>

我这么说可能不太靠谱，但有没有可能完全不统计删除的内容？

基本上就是忽略所有被删除的帖子，然后正常统计所有新回复。

我这么说是因为，对我来说，那里其实 _没有任何新内容_ 可读，而论坛的目的就是为了阅读和回复（即讨论）。

或者，是否可以将“新增的已删除计数”设为 1（硬性上限），这样我就能收到通知，知道有变化发生了？

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2020年二月22日 05:30 UTC](https://meta.discourse.org/t/number-of-unread-replies-is-different-than-number-of-topic-replies-due-to-reply-deletions/142244/4 "2020-02-22T05:30:54Z")

</div>

问题在于，在话题列表中我们不进行计数。我们知道用户已阅读到第 5 条帖子，而第 20 条帖子是最后一条。

我们必须避免计数，因为计数开销很大，这意味着我们需要访问每一条帖子。

---

<div class="post-metadata">

**Author:** ![tomtjes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tomtjes/32/131271_2.png) [@tomtjes](https://meta.discourse.org/u/tomtjes)\
**Post date:** [2020年五月29日 16:00 UTC](https://meta.discourse.org/t/number-of-unread-replies-is-different-than-number-of-topic-replies-due-to-reply-deletions/142244/5 "2020-05-29T16:00:48Z")

</div>

又上当了  
 ![Screen Shot 2020-05-29 at 11.50.56](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/optimized/3X/f/a/fa4f27c66e82da72c2f021898cfe5bad766eb9ea_2_690x41.png)

---

<div class="post-metadata">

**Author:** ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)\
**Post date:** [2024年三月14日 13:53 UTC](https://meta.discourse.org/t/number-of-unread-replies-is-different-than-number-of-topic-replies-due-to-reply-deletions/142244/6 "2024-03-14T13:53:40Z")

</div>

我本来正在撰写一篇关于此的 #Contribute > UX 报告，因为它经常让我感到困惑：  
 ![image](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/original/4X/b/4/e/b4efacd9f5809068acf5d04a0545da33ca6ff65e.png)

再仔细想想，私聊（whispers）会不会产生同样的效果？

---

<div class="post-metadata">

**Author:** ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)\
**Post date:** [2024年三月14日 14:07 UTC](https://meta.discourse.org/t/number-of-unread-replies-is-different-than-number-of-topic-replies-due-to-reply-deletions/142244/7 "2024-03-14T14:07:04Z")

</div>

有些主题有很多已删除的回复

![image](https://global.discourse-cdn.com/meta/original/4X/8/9/d/89d912a183d12fe7f160341d336a2d7c42928acf.png)

很多帖子是通过常规论坛维护自动删除的（例如：“此主题的所有回复将在 x 时间后删除”），因为 Meta 自 Discourse 成立之初就一直存在。

---

<div class="post-metadata">

**Author:** ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)\
**Post date:** [2024年三月14日 14:08 UTC](https://meta.discourse.org/t/number-of-unread-replies-is-different-than-number-of-topic-replies-due-to-reply-deletions/142244/8 "2024-03-14T14:08:24Z")

</div>

这完全说得通，只是看到一个主题据称有 600 多个未读回复，但查看该主题时却只有一个，这让人感到困惑。

---

<div class="post-metadata">

**Author:** ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)\
**Post date:** [2024年三月14日 14:15 UTC](https://meta.discourse.org/t/number-of-unread-replies-is-different-than-number-of-topic-replies-due-to-reply-deletions/142244/9 "2024-03-14T14:15:28Z")

</div>

> [@Firepup650](#):
>
> 低语会产生同样的效果吗？

确实如此：

 ![我的主账号](https://global.discourse-cdn.com/meta/original/4X/1/e/8/1e87f4bb71559a152da6ac585033cad2b4e8d92d.png)  
 ![次账号，看不到低语](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/optimized/4X/e/9/1/e916c52a462ceeed57ef4bfc845846c74dd573bf_2_690x31.png)
