main ← add-topic-list-reactions
opened 08:17PM - 05 Nov 25 UTC
### What does this do?
This PR adds reaction data for the first post to the `To… picListItemSerializer`, enabling reactions to be displayed on topic lists without requiring additional API calls.
### Why is this needed?
Previously, topic lists only showed basic topic metadata. To display reactions on the first post of each topic, plugins would need to have the frontend make separate API calls for each topic's first post, causing N+1 queries. This change preloads all necessary reaction data when the topic list is serialized.
### How does it work?
- Adds `op_reactions_data` to `TopicListItemSerializer`. I added `ReactionsSerializerHelpers` to reuse as much of the existing logic as possible.
- Adds a `include_discourse_reactions_data_on_topic_list` modifier (default false) for giving plugins control over the injection of the new data.
- Includes test coverage
### Usage
From within a topic list plugin outlet, the discourse-reactions can be displayed like so:
```gjs
<DiscourseReactionsActions
@post={{@topic.op_reactions_data}}
@showLogin={{false}}
/>
```
The PR refactored how the reaction list is loaded and deprecate the original /post_action_users api.
However, it breaks the original behavior of showing who “liked” the topics and leave the original area blank.
Is it a bug or a by-designed behavior? And is it necessary to add back the original logic ?
I’m not sure if this is the same thing, but perhaps it’s this ?
1 Like
Thank you for your reply.
The attached link seems to be related to a bug not displaying the reaction menu.
But the issue I mentioned is that, in my memory, a div like “[bunch of avatars] liked the topic” used to display at the down right corner of the first post when clicking the “more” button, and now it disappeared.
Moin
November 18, 2025, 10:38am
4
If it’s not related to the changes in the PR you linked, it might be because of the removal of <SmallUserList in
main ← likes-dmenu
opened 10:05PM - 12 Aug 25 UTC
This PR moves the likes menu away from the small user list rendering under the p… ost action icons. This causes the page to jump.
---
It moves us toward a like menu that functions similar to how reactions menu works.
**Before**

**After**
https://github.com/user-attachments/assets/bd9bf9f3-d23a-4b04-bd25-9972f8301e4e
1 Like
Thank you, maybe it is related to the PR you mentioned.
Since the small-user-list div still exists, is it necessary to reimplement the function back, or remove the div totally?