mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
If you happen to mention someone with the wrong capitalization for that person's username (e.g. `@sAm`), that incorrect capitalization would get displayed on their user card. This update will fix that by displaying the `user.username` value, which will have the correct capitalization. I also added some tests that will ensure `username` and `name` are displayed on the user card in the correct order based on the `prioritize_username_in_ux` setting. This issue was reported here: https://meta.discourse.org/t/capitalization-does-not-match-when-you-open-user-cards-using-mentions/217166