mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 01:40:40 +08:00

When the `tags_listed_by_group` site setting is disable, we were seeing the N+1 queries problem when multiple `CategoryTag` records are listed. This commit fixes that by ensuring that we are not filtering through the category `tags` association after the association has been eager loaded.