# Reactions sometimes not displayed when like count is missing

**URL:** https://meta.discourse.org/t/reactions-sometimes-not-displayed-when-like-count-is-missing/391609
**Category:** Bug
**Tags:** reactions
**Created:** [December 17, 2025, 11:22pm 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:** 5
**Page:** 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: [December 17, 2025, 11:22pm UTC](https://meta.discourse.org/t/reactions-sometimes-not-displayed-when-like-count-is-missing/391609/1 "2025-12-17T23:22:10Z")

</div>

@JammyDodger noticed that he wasn’t able to see the reactions on this post on mobile: [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 (mobile) - No reactions:

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

### Jammy (desktop) - Reactions on the left, but not on the right:

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

### Everyone else - You can see he has reacted, everything works as expected:

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

After searching through my reaction activity, I found an example where the problem occurs for me: [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]

What both posts have in common is that there are reactions, but the number of likes does not appear to be available as the count in the `actions_summary`.

Depending on if you reacted on the post yourself or not, `id: 2` is either missing in the `actions_summary`, or if you haven’t reacted you can see that the count is missing. If I understand correctly, `id: 2` is included if either you could react (`can_act`) or `count`\>0.

Taking a closer look at the json of the post example2 [https://meta.discourse.org/posts/1404583.json](https://meta.discourse.org/posts/1404583.json) where two users reacted, this count is missing:

| User who hasn’t reacted   
 `can_act` true | User who has reacted   
 no `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) |

In this case, the `count: 2` is missing for both users. For the user who has already reacted this results in `id: 2` missing completely. This seems to explain why reactions are not shown for the user who reacted, even though reactions exist.

For comparison, here is a post with two reactions where the count is shown as expected [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) and the post’s json [https://meta.discourse.org/posts/1907506.json](https://meta.discourse.org/posts/1907506.json)

| User who hasn’t reacted   
 `can_act` true | User who has reacted   
 `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) |

On this post the count is available and the reactions appear as expected.

I have no idea how many posts here on Meta are affected by this or whether other forums are also affected. And I can’t provide any steps on why the data is missing. I can only report that for some posts, the reactions are not displayed on mobile phones and are only partially displayed on laptops, and the cause for this seems to be related to the missing data.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [December 25, 2025, 10:44am UTC](https://meta.discourse.org/t/reactions-sometimes-not-displayed-when-like-count-is-missing/391609/2 "2025-12-25T10:44:47Z")

</div>

Started investigating, here’s a WIP fix

[https://github.com/discourse/discourse/pull/36865](https://github.com/discourse/discourse/pull/36865)

---

<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: [December 26, 2025, 11:09am UTC](https://meta.discourse.org/t/reactions-sometimes-not-displayed-when-like-count-is-missing/391609/4 "2025-12-26T11:09:27Z")

</div>

Were you able to find out how this happened? I only found examples from 2023 and the beginning of 2024. So I wondered if something with the data before all reactions were counted as likes is different than after that change.  
So I tried what happens if I use a reaction that is excluded from counting as a like, but then “can\_act” is still true even if “can\_undo” for current\_user\_reaction is false.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [January 8, 2026, 10:20am UTC](https://meta.discourse.org/t/reactions-sometimes-not-displayed-when-like-count-is-missing/391609/5 "2026-01-08T10:20:22Z")

</div>

> [@Moin](#):
>
> Were you able to find out how this happened?

That’s because `discourse_reactions_like_sync_enabled` is set to **`false`**. This was done intentionally by the migration from [May 2024](https://github.com/discourse/discourse/blob/22e06e715126aec94b01bfcbdb40d9a9b6945441/plugins/discourse-reactions/db/migrate/20240521032001_disable_reactions_like_sync_for_existing_sites.rb) to avoid disrupting existing data.

When this setting is disabled, the `ReactionLikeSynchronizer` doesn’t run. This synchronizer is responsible for:

- Creating `PostAction` (like) records for reactions
- Updating `posts.like_count` to reflect reactions

Without the sync running:

1. Reactions exist in `discourse_reactions_reaction_users`
2. But there are no corresponding `PostAction` records
3. And `posts.like_count` remains at 0

Your intuition about the timing is spot on - the posts from 2023/early 2024 had reactions added when this sync wasn’t active, so their `like_count` was never updated. The old serializer logic then omitted the like action entirely when both `count = 0` AND `can_act = false` (undo window expired).

The fix doesn’t correct the underlying data discrepancy - it simply ensures the UI displays reactions correctly even when the `PostAction`/`like_count` data isn’t synced. On sites where `discourse_reactions_like_sync_enabled = false`, reactions existing independently from `PostAction` records is expected behavior.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [January 9, 2026, 7:00am UTC](https://meta.discourse.org/t/reactions-sometimes-not-displayed-when-like-count-is-missing/391609/6 "2026-01-09T07:00:55Z")

</div>

This topic was automatically closed after 20 hours. New replies are no longer allowed.
