# 标志或（其他东西）增加了反应的数量

**URL:** <https://meta.discourse.org/t/flags-or-something-else-increase-the-number-of-reactions/375520>\
**Category:** Bug\
**Tags:** reactions, fixed\
**Created:** [2025年七月23日 23: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:** 1\
**Showing post:** 2

<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:** [2026年八月5日 16: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

中修复

---

_[View the full topic](https://meta.discourse.org/t/flags-or-something-else-increase-the-number-of-reactions/375520)._
