# 用户被删除的主题上回复数不正确（-1）

**URL:** <https://meta.discourse.org/t/incorrect-number-of-replies-1-on-a-topic-without-replies-on-which-the-users-was-deleted/258529>\
**Category:** Bug\
**Created:** [2023年三月17日 15:35 UTC](https://meta.discourse.org/t/incorrect-number-of-replies-1-on-a-topic-without-replies-on-which-the-users-was-deleted/258529 "2023-03-17T15:35:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [2023年三月17日 15:35 UTC](https://meta.discourse.org/t/incorrect-number-of-replies-1-on-a-topic-without-replies-on-which-the-users-was-deleted/258529/1 "2023-03-17T15:35:19Z")

</div>

这个 bug 可能不会打扰任何人（但潜在的计算错误可能会带来不可预见的副作用），但至少它被记录在案了。

重现步骤：

1. 用户发送一条私信
2. 用户被删除
3. 私信显示“ **-1 回复** ”。

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

---

<div class="post-metadata">

**Author:** ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)\
**Post date:** [2023年三月17日 15:36 UTC](https://meta.discourse.org/t/incorrect-number-of-replies-1-on-a-topic-without-replies-on-which-the-users-was-deleted/258529/2 "2023-03-17T15:36:27Z")

</div>

按定义，它是 -1 😉

抱歉，只是忍不住诱惑 🤣
