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

Regression from https://github.com/discourse/discourse/pull/23668 where we stopped passing in `this.badgeReason` to the badge granting function. This PR fixes that and adds a unit test to cover that code path.