Badge system deactivated, but badges still appear on some profiles

AI-generated summary

commonpawn reported a bug where badges remain visible on summary pages and badge overview pages despite the badge system being disabled in the Discourse settings. They noted this appears to affect users who had badges prior to the deactivation, causing confusion. Mittineague clarified that the setting likely only prevents new badge grants rather than removing existing ones, suggesting the visible badges might be non-revocable types like “Reader” or “Anniversary.” They proposed manually removing badges via the Admin user page as a potential workaround. In response, sam acknowledged the oversight regarding summary pages and committed to hiding badge pages by returning a 404 error. sam subsequently confirmed the issue was fixed via two specific commits (link 1, link 2) and requested that any remaining issues be reported as separate bugs.

On our discourse installation we disabled the badge system in settings. However, it is still possible to see some user’s badges on the summary pages as well as it is possible to access the badge overview pages.

Not sure what and why - but it seems like users who were around before we disabled the badge system still have their badges visible. Not sure if this is a bug or intentional, but we would like them to be hidden as we’re not using the system so it is rather confusing.

「いいね!」 1

I could be wrong, but I’ve understood the Admin → Settings → Basic Setup [enable badges] setting to mean “don’t run the badge queries” i.e. “don’t grant any more”. and not that disabling would mean “remove all trace of existing badges”

That said, other than custom badges, most of the badges that come with Discourse are revocable.
A few are not

  • Reader
  • First Flag
  • Anniversary
  • Hot Link
  • Famous Link

Other than maybe First Flag most of those others are not so easy to attain.

Are the Badges that remain limited to only the non-revocable Badges?

Would going to individual members’ Admin → User page and removing the Badges be a suitable (albeit time consuming) solution?

I probably missed the summary page, will remove that … also set badge pages to 404 from the client.

「いいね!」 4

Fixed per:

https://github.com/discourse/discourse/commit/adbc22530cbc25395cb4e16ad12913ee3bacbbaa

https://github.com/discourse/discourse/commit/ed750cac39a3bb7e94a6f0f0215e52bb994024f3

raise new specific bug reports (1 per issue) if anything else is left

「いいね!」 4