# 当缺少反应计数时，反应有时不会显示

**URL:** <https://meta.discourse.org/t/reactions-sometimes-not-displayed-when-like-count-is-missing/391609>\
**Category:** Bug\
**Tags:** reactions\
**Created:** [2025年十二月17日 23:22 UTC](https://meta.discourse.org/t/reactions-sometimes-not-displayed-when-like-count-is-missing/391609 "2025-12-17T23:22:10Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [2025年十二月17日 23:22 UTC](https://meta.discourse.org/t/reactions-sometimes-not-displayed-when-like-count-is-missing/391609/1 "2025-12-17T23:22:10Z")

</div>

@JammyDodger 注意到他在移动设备上看不到此帖子的回复：[ToS and Privacy buttons disappear from /about when I remove my custom FAQ URL - #3 by Canapin](https://meta.discourse.org/t/tos-and-privacy-buttons-disappear-from-about-when-i-remove-my-custom-faq-url/270735/3?silent=true) [example1]

#### Jammy (移动设备) - 没有回复：

 ![Screenshot_20251217_203342](https://global.discourse-cdn.com/meta/original/4X/f/7/b/f7b5c7ce0666c288c3755d8cd3e6c032e5bfaf17.jpeg)

### Jammy (桌面设备) - 左侧有回复，但右侧没有：

 ![image(12)](https://global.discourse-cdn.com/meta/original/4X/e/3/c/e3cb8eac7c77c3ec799f2dbca735376e82a8e138.png)

### 其他所有人 - 您可以看到他已回复，一切正常：

 ![Screenshot_20251217_203645_Firefox](https://global.discourse-cdn.com/meta/original/4X/3/3/3/333882e919326e8ec7ae7bd3f83c1cd29d6509bc.jpeg)

在搜索了我的回复活动后，我找到了一个问题也会影响我的示例：[Admins may not realize certain sidebar customization are global - #8 by JammyDodger](https://meta.discourse.org/t/admins-may-not-realize-certain-sidebar-customization-are-global/268216/8?silent=true) [example2]

这两个帖子都有一个共同点，就是有回复，但点赞数似乎在 `actions_summary` 中不可用。

根据您是否回复了帖子本身，`id: 2` 要么在 `actions_summary` 中缺失，要么如果您没有回复，您会看到计数缺失。如果我理解正确，如果 `can_act` 为真或者 `count`\>0，则包含 `id: 2`。

仔细查看帖子 example2（[https://meta.discourse.org/posts/1404583.json）的](https://meta.discourse.org/posts/1404583.json%EF%BC%89%E7%9A%84) json，其中有两个人回复了，但缺少此计数：

| 未回复的用户   
 `can_act` true | 已回复的用户   
 没有 `id 2` |
| --- | --- |
| ![image](https://global.discourse-cdn.com/meta/original/4X/f/9/5/f95f472bec76fab66bbe7990ff881e1b7e52d6d1.png) |   
 ![image](https://global.discourse-cdn.com/meta/original/4X/b/e/c/bec04da19e3da722987464178cf2911537d7765b.png) |

在这种情况下，两个用户都缺少 `count: 2`。对于已经回复的用户，这导致 `id: 2` 完全丢失。这似乎解释了为什么回复对于已回复的用户不可见，尽管回复确实存在。

作为比较，这是一个有两个回复的帖子，计数如预期显示 [Buttons to order items in emoji list settings is difficult to find on touch devices - #2 by zogstrip](https://meta.discourse.org/t/buttons-to-order-items-in-emoji-list-settings-is-difficult-to-find-on-touch-devices/391181/2?silent=true%EF%BC%8C%E4%BB%A5%E5%8F%8A%E8%AF%A5%E5%B8%96%E5%AD%90%E7%9A%84) json [https://meta.discourse.org/posts/1907506.json](https://meta.discourse.org/posts/1907506.json)

| 未回复的用户   
 `can_act` true | 已回复的用户   
 `acted` true |
| --- | --- |
| ![image](https://global.discourse-cdn.com/meta/original/4X/e/8/4/e84e8fe751bffb722436b03cc6fa069f618f97c3.png) | ![image](https://global.discourse-cdn.com/meta/original/4X/b/f/b/bfb6418f1568923538f24d1ae48d0794b4356a10.png) |

在此帖子中，计数可用，回复如预期显示。

我不知道 Meta 上有多少帖子受到此问题的影响，或者其他论坛是否也受到影响。我也无法提供数据丢失的原因。我只能报告说，对于某些帖子，回复在手机上不显示，在笔记本电脑上仅部分显示，而原因似乎与数据丢失有关。

---

_[View the full topic](https://meta.discourse.org/t/reactions-sometimes-not-displayed-when-like-count-is-missing/391609)._
