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}}
/>
```
La PR ha refattorizzato il caricamento dell’elenco delle reazioni e ha deprecato l’API originale /post_action_users.
Tuttavia, ciò interrompe il comportamento originale della visualizzazione di chi ha “messo mi piace” agli argomenti, lasciando vuota l’area originale.
È un bug o un comportamento previsto? Ed è necessario ripristinare la logica originale?
1 Mi Piace
Non sono sicuro se sia la stessa cosa, ma forse è questa ?
1 Mi Piace
Grazie per la tua risposta.
Il link allegato sembra essere correlato a un bug che non visualizza il menu delle reazioni, ma il problema che ho menzionato è che, a memoria mia, una frase come “[un mucchio di avatar] ha apprezzato l’argomento” veniva visualizzata facendo clic sul pulsante “altro”, e ora è scomparsa.
Moin
18 Novembre 2025, 10:38am
4
Se non è correlato alle modifiche nel PR che hai collegato, potrebbe essere dovuto alla rimozione di <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 Mi Piace
Grazie, forse è correlato al PR che hai menzionato.
Dato che il div small-user-list esiste ancora, è necessario reimplementare la funzione?