The discussion revolves around a bug in Discourse where names with medial capitals (PascalCase) are titleized, resulting in incorrect formatting. tmcw reports the issue with his name “Tom MacWright” being suggested as “Tom Mac Wright”. After investigating, sam and david discover that the issue applies to all authentication methods due to the User.suggest_name method being used when a name is not provided. david proposes a change to the code, which sam agrees with. sam then implements the fix, which should be live on meta shortly.
My name is Tom MacWright. Every time I sign into a Discourse instance, it suggests that I should set my name as “Tom Mac Wright”. Like many folks from Scotland and Ireland, my name has a medial capital, or, in programming terms, is PascalCase.
Anyway, here’s my pitch: Discourse runs this User.suggest_name method that uses titleize to turn MacWright into Mac Wright. Instead, that should only run when you have only a username or an email here. Otherwise, someone put their name on GitHub (Git Hub?), and they likely meant it.