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}}
/>
```
O PR refatorou como a lista de reações é carregada e depreciou a API original /post_action_users.
No entanto, ele quebra o comportamento original de mostrar quem “curtiu” os tópicos e deixa a área original em branco.
Isso é um bug ou um comportamento projetado? E é necessário adicionar a lógica original de volta?
1 curtida
Não tenho certeza se é a mesma coisa, mas talvez seja isto ?
1 curtida
Obrigado pela sua resposta.
O link anexado parece estar relacionado a um bug que não exibe o menu de reações, mas o problema que mencionei é que, na minha memória, uma frase como “[monte de avatares] gostaram do tópico” era exibida ao clicar no botão “mais”, e agora ela desapareceu.
Moin
Novembro 18, 2025, 10:38am
4
Se não estiver relacionado às alterações no PR que você vinculou, pode ser devido à remoção de <SmallUserList em
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 curtida
Obrigado, talvez esteja relacionado ao PR que você mencionou.
Como a div small-user-list ainda existe, é necessário reimplementar a função?