# هل الأعلام أو (شيء آخر) تزيد عدد ردود الفعل

**URL:** https://meta.discourse.org/t/flags-or-something-else-increase-the-number-of-reactions/375520
**Category:** Bug
**Tags:** reactions, fixed
**Created:** [23 يوليو 2025، 11:36م UTC](https://meta.discourse.org/t/flags-or-something-else-increase-the-number-of-reactions/375520 "2025-07-23T23:36:58Z")
**Posts on this page:** 3
**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: [23 يوليو 2025، 11:36م UTC](https://meta.discourse.org/t/flags-or-something-else-increase-the-number-of-reactions/375520/1 "2025-07-23T23:36:58Z")

</div>

لدي انطباع بأن الأعلام على منشور تزيد من عدد ردود الفعل. على سبيل المثال، على [‘Preinstalled’ plugin label on hosted sites - #2 by Moin](https://meta.discourse.org/t/preinstalled-plugin-label-on-hosted-sites/375051/2) أرى

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/1/b/51bdf52c33133c08342c01f8a58b1fc8c85dae28.png)  
لاحظت أيضًا منشورات كان فيها الفرق أكبر: على سبيل المثال [Custom user menu tab](https://meta.discourse.org/t/custom-user-menu-tab/130091/1)  
 ![image](https://global.discourse-cdn.com/meta/original/4X/b/7/1/b711b5861e865fa3f1f7d03c8851b5d084aa8cc9.png)

وعلى منتدى الخاص بي بعد أن تفاعلت بـ 👏 على منشور تم الإبلاغ عنه أرى

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/8/4/8844efb040ee613218adb0db29dd3d579f074345.png)

لقد قمت بفحص الـ json للمثال الأول الخاص بي:

```json
        "reactions": [
          {
            "id": "heart",
            "type": "emoji",
            "count": 5
          }
        ],
        "current_user_reaction": null,
        "reaction_users_count": 4,

```

لذلك أعتقد أن العدد الذي يتم حسابه هنا يسبب هذه المشكلة:

> <https://github.com/discourse/discourse/blob/0eab7daea450e1d7e416c46a23aaaf95687d4855/plugins/discourse-reactions/plugin.rb#L139>

---

<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: [5 أغسطس 2026، 4:04م UTC](https://meta.discourse.org/t/flags-or-something-else-increase-the-number-of-reactions/375520/2 "2026-08-05T16:04:39Z")

</div>

أعتقد أن هذا تم إصلاحه في

> <https://github.com/discourse/discourse/pull/36138>
>
> When computing the number of reactions on a post, we were missing a filter to en…sure we were correctly counting likes.
> 
> Also improved the performance of the computation of the reactions count by doing all the work in SQL instead of retrieving all the data, parsing it in Ruby and filtering it server-side.
> 
> Also slightly refactored the specs to use "contain\_exactly" instead of "eq" because the order doesn't matter.
> 
> Internal ref - t/168844

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [7 أغسطس 2026، 4:20م UTC](https://meta.discourse.org/t/flags-or-something-else-increase-the-number-of-reactions/375520/3 "2026-08-07T16:20:20Z")

</div>


