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}}
/>
```
أعادت هذه المراجعة الهيكلة لكيفية تحميل قائمة ردود الفعل وألغت واجهة برمجة التطبيقات الأصلية /post_action_users.
ومع ذلك، فإنها تكسر السلوك الأصلي المتمثل في إظهار من “أعجب” بالمواضيع وتترك المنطقة الأصلية فارغة.
هل هذا خطأ أم سلوك مصمم؟ وهل من الضروري إعادة إضافة المنطق الأصلي؟
إعجاب واحد (1)
لست متأكدًا مما إذا كان هذا هو نفس الشيء، ولكن ربما يكون هذا ؟
إعجاب واحد (1)
شكراً على ردك.
الرابط المرفق يبدو أنه يتعلق بخلل في عدم عرض قائمة ردود الفعل، ولكن المشكلة التي ذكرتها هي أنه، في ذاكرتي، كانت جملة مثل “[مجموعة من الصور الرمزية] أعجبت بالموضوع” تظهر عند النقر على زر المزيد، والآن اختفت.
Moin
18 نوفمبر 2025، 10:38ص
4
إذا لم يكن الأمر متعلقًا بالتغييرات في طلب السحب الذي ربطته، فقد يكون ذلك بسبب إزالة SmallUserList في
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
إعجابَين (2)
شكراً لك، ربما يكون ذلك متعلقاً بطلب السحب (PR) الذي ذكرته.
بما أن عنصر div الخاص بقائمة المستخدمين الصغار (small-user-list) لا يزال موجوداً، هل من الضروري إعادة تطبيق الوظيفة؟