# Assegnazione di un badge in base al tagging di un utente in un post

**URL:** https://meta.discourse.org/t/awarding-a-badge-based-on-a-user-being-tagged-in-a-post/115437
**Category:** Support
**Tags:** badges
**Created:** [18 Aprile 2019, 10:34pm UTC](https://meta.discourse.org/t/awarding-a-badge-based-on-a-user-being-tagged-in-a-post/115437 "2019-04-18T22:34:58Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![LKNickname](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lknickname/32/209114_2.png) [@LKNickname](https://meta.discourse.org/u/LKNickname)
#### Post date: [18 Aprile 2019, 10:34pm UTC](https://meta.discourse.org/t/awarding-a-badge-based-on-a-user-being-tagged-in-a-post/115437/1 "2019-04-18T22:34:59Z")

</div>

È possibile assegnare un Badge se l’Utente X è stato menzionato nel Post Y?

Ad esempio:  
Scrivo un Post:  
“E un enorme ringraziamento a @UserX e @UserY per aver fatto certe cose”

Esiste una query che possa assegnare un badge a questi due utenti perché sono stati menzionati in questo specifico post?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [18 Aprile 2019, 10:50pm UTC](https://meta.discourse.org/t/awarding-a-badge-based-on-a-user-being-tagged-in-a-post/115437/2 "2019-04-18T22:50:29Z")

</div>

The “First Mention” badge already exists; I’m not sure why you would want to encourage mentioning one person, that’d be _very_ annoying for the target person.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [18 Aprile 2019, 11:02pm UTC](https://meta.discourse.org/t/awarding-a-badge-based-on-a-user-being-tagged-in-a-post/115437/3 "2019-04-18T23:02:26Z")

</div>

If you’re self-hosted and can create badge SQL you could create SQL to make such a badge. Presumably you’d target it so that only you or staff would make a badge with `@mentions`–but that would mean that you could **never** `@mention` someone without giving them a badge.

Hard to imagine that you really want that.

---

<div class="post-metadata">

### Author: ![cjk77](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cjk77/32/151779_2.png) [@cjk77](https://meta.discourse.org/u/cjk77)
#### Post date: [18 Aprile 2019, 11:20pm UTC](https://meta.discourse.org/t/awarding-a-badge-based-on-a-user-being-tagged-in-a-post/115437/4 "2019-04-18T23:20:18Z")

</div>

Why can’t you just create a badge for them and award it manually? It seems a lot simpler, plus it avoids the issues Jeff and Jay mentioned above.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [23 Maggio 2023, 3:03pm UTC](https://meta.discourse.org/t/awarding-a-badge-based-on-a-user-being-tagged-in-a-post/115437/5 "2023-05-23T15:03:37Z")

</div>



---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [23 Maggio 2023, 3:08pm UTC](https://meta.discourse.org/t/awarding-a-badge-based-on-a-user-being-tagged-in-a-post/115437/6 "2023-05-23T15:08:09Z")

</div>


