main ← filter_out_disabled_badge
merged 07:28AM - 07 Jan 26 UTC
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.