# Capitalization does not match when you open user cards using mentions

**URL:** https://meta.discourse.org/t/capitalization-does-not-match-when-you-open-user-cards-using-mentions/217166
**Category:** Bug
**Created:** [February 5, 2022, 7:52am UTC](https://meta.discourse.org/t/capitalization-does-not-match-when-you-open-user-cards-using-mentions/217166 "2022-02-05T07:52:22Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![qwe\_rfv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qwe_rfv/32/248878_2.png) [@qwe\_rfv](https://meta.discourse.org/u/qwe_rfv)
#### Post date: [February 5, 2022, 7:52am UTC](https://meta.discourse.org/t/capitalization-does-not-match-when-you-open-user-cards-using-mentions/217166/1 "2022-02-05T07:52:22Z")

</div>

when you click on @qwe_rfv, It will work normally  
But when you click on @QwE_rFv… did you get it?

 ![](https://global.discourse-cdn.com/meta/original/3X/a/e/aebeeadf96fc725de4be43570ee4e18d5957fcf7.png)

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [February 5, 2022, 7:54am UTC](https://meta.discourse.org/t/capitalization-does-not-match-when-you-open-user-cards-using-mentions/217166/2 "2022-02-05T07:54:39Z")

</div>

It works with both mentions for me.

---

<div class="post-metadata">

### Author: ![qwe\_rfv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qwe_rfv/32/248878_2.png) [@qwe\_rfv](https://meta.discourse.org/u/qwe_rfv)
#### Post date: [February 5, 2022, 8:05am UTC](https://meta.discourse.org/t/capitalization-does-not-match-when-you-open-user-cards-using-mentions/217166/3 "2022-02-05T08:05:15Z")

</div>

I meant the username mentioned is different

 ![](https://global.discourse-cdn.com/meta/original/3X/0/6/06a130a7215b0a1c97f471c880f5231b017c0901.png)

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [February 5, 2022, 8:45am UTC](https://meta.discourse.org/t/capitalization-does-not-match-when-you-open-user-cards-using-mentions/217166/4 "2022-02-05T08:45:00Z")

</div>

I think this is related [Missing capitalisation in username on usercard opened from message participants](https://meta.discourse.org/t/missing-capitalisation-in-username-on-usercard-opened-from-message-participants/35878)  
On user card the username is case sensitive. I think it push the mentioned username to the user card.

---

<div class="post-metadata">

### Author: ![qwe\_rfv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qwe_rfv/32/248878_2.png) [@qwe\_rfv](https://meta.discourse.org/u/qwe_rfv)
#### Post date: [February 5, 2022, 11:21am UTC](https://meta.discourse.org/t/capitalization-does-not-match-when-you-open-user-cards-using-mentions/217166/5 "2022-02-05T11:21:44Z")

</div>

> [@Don](#):
>
> it push the mentioned username to the user card.

Yes, That’s right. But Isn’t @Don really ummm… kind of bad?  
I think It got to be like this: when someone mention @QwE_rFv , automatically turn Into @qwe_rfv

---

<div class="post-metadata">

### Author: ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)
#### Post date: [February 5, 2022, 2:57pm UTC](https://meta.discourse.org/t/capitalization-does-not-match-when-you-open-user-cards-using-mentions/217166/6 "2022-02-05T14:57:49Z")

</div>

I don’t think that the user called `BenDover` would agree with you 🤔

---

<div class="post-metadata">

### Author: ![frold](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/frold/32/82547_2.png) [@frold](https://meta.discourse.org/u/frold)
#### Post date: [February 5, 2022, 3:19pm UTC](https://meta.discourse.org/t/capitalization-does-not-match-when-you-open-user-cards-using-mentions/217166/7 "2022-02-05T15:19:51Z")

</div>

![Happy Eddie Murphy GIF by Laff](https://global.discourse-cdn.com/meta/original/3X/4/9/49a92bbc03fee293555b2fe9202b6707d8719b99.webp)

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [February 5, 2022, 3:29pm UTC](https://meta.discourse.org/t/capitalization-does-not-match-when-you-open-user-cards-using-mentions/217166/8 "2022-02-05T15:29:24Z")

</div>

Why not always match the username? So beNdOVeR would become BenDover.

---

<div class="post-metadata">

### Author: ![awslabspl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awslabspl/32/207789_2.png) [@awslabspl](https://meta.discourse.org/u/awslabspl)
#### Post date: [February 5, 2022, 3:48pm UTC](https://meta.discourse.org/t/capitalization-does-not-match-when-you-open-user-cards-using-mentions/217166/9 "2022-02-05T15:48:56Z")

</div>

@Moin  
Because these are two different usernames maybe?

---

<div class="post-metadata">

### Author: ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)
#### Post date: [February 5, 2022, 3:56pm UTC](https://meta.discourse.org/t/capitalization-does-not-match-when-you-open-user-cards-using-mentions/217166/10 "2022-02-05T15:56:23Z")

</div>

No, usernames on Discourse are case aware but not case sensitive. `USER`, `user` and `UsEr` Are the same user.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 7, 2022, 6:18am UTC](https://meta.discourse.org/t/capitalization-does-not-match-when-you-open-user-cards-using-mentions/217166/11 "2022-02-07T06:18:34Z")

</div>

I am putting #pr-welcome on this.

When you click @sAm you should probably see `sam` in the user card … not `sAm`

It is very minor, has very little user impact, probably an easy fix to correct it after the card loads all the data from the server.

---

<div class="post-metadata">

### Author: ![shauna](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@shauna](https://meta.discourse.org/u/shauna)
#### Post date: [April 22, 2022, 6:14am UTC](https://meta.discourse.org/t/capitalization-does-not-match-when-you-open-user-cards-using-mentions/217166/12 "2022-04-22T06:14:03Z")

</div>

I opened a PR for this:  
[https://github.com/discourse/discourse/pull/16539](https://github.com/discourse/discourse/pull/16539)

😀

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [May 3, 2022, 2:49pm UTC](https://meta.discourse.org/t/capitalization-does-not-match-when-you-open-user-cards-using-mentions/217166/15 "2022-05-03T14:49:46Z")

</div>

Thanks @qWe_RfV for reporting this issue and @sHaUnA for fixing this 👏

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [May 3, 2022, 2:49pm UTC](https://meta.discourse.org/t/capitalization-does-not-match-when-you-open-user-cards-using-mentions/217166/16 "2022-05-03T14:49:49Z")

</div>


