# 移除禁用徽章的通知

**URL:** <https://meta.discourse.org/t/remove-notifications-for-disabled-badges/392572>\
**Category:** Bug\
**Tags:** badges\
**Created:** [2026年一月2日 20:11 UTC](https://meta.discourse.org/t/remove-notifications-for-disabled-badges/392572 "2026-01-02T20:11:47Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [2026年一月7日 07:06 UTC](https://meta.discourse.org/t/remove-notifications-for-disabled-badges/392572/5 "2026-01-07T07:06:42Z")

</div>

已在以下位置修复：

> <https://github.com/discourse/discourse/pull/36987>
>
> Hide badge granted notifications when:
> \- The \`enable\_badges\` site setting is fa…lse
> \- The specific badge is disabled
> 
> Filtering is done in Ruby after fetching notifications rather than in
> SQL to avoid adding JOINs or subqueries that would slow down the
> notifications query. Badge notifications are typically a small subset,
> so filtering in memory is more efficient than complicating the database
> query.

---

_[View the full topic](https://meta.discourse.org/t/remove-notifications-for-disabled-badges/392572)._
