# Count at "Others with this badge" includes current user

**URL:** https://meta.discourse.org/t/count-at-others-with-this-badge-includes-current-user/90089
**Category:** UX
**Created:** [June 18, 2018, 7:32am UTC](https://meta.discourse.org/t/count-at-others-with-this-badge-includes-current-user/90089 "2018-06-18T07:32:57Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![fhe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fhe/32/113345_2.png) [@fhe](https://meta.discourse.org/u/fhe)
#### Post date: [June 18, 2018, 7:32am UTC](https://meta.discourse.org/t/count-at-others-with-this-badge-includes-current-user/90089/1 "2018-06-18T07:32:57Z")

</div>

The page that is opened when a badge is granted shows a button “Others with this badge (X)”, where X denotes a number.

I’ve noticed that this number is incorrect in some cases in the sense that it also includes the current user and counts each occurrence of the badge.

As an example, lets say I’ve been just granted the “Hot Link” badge. The page shows two instances of the “Hot Link” badge (the current and a previously granted one). The button shows “Others with this badge (2)”. If I click on the button the very same badges are shown.

---

<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: [June 20, 2018, 1:17am UTC](https://meta.discourse.org/t/count-at-others-with-this-badge-includes-current-user/90089/2 "2018-06-20T01:17:12Z")

</div>

@misaka4e21 can you have a look at a simple fix here? We just need to `-1` if you happen to have the badge.

---

<div class="post-metadata">

### Author: ![fhe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fhe/32/113345_2.png) [@fhe](https://meta.discourse.org/u/fhe)
#### Post date: [June 20, 2018, 5:39am UTC](https://meta.discourse.org/t/count-at-others-with-this-badge-includes-current-user/90089/3 "2018-06-20T05:39:50Z")

</div>

> [@sam](#):
>
> `-1` if you happen to have the badge

I haven’t looked at the code, it’s probably `-1 * n` (where `n` is the number of times you got granted this badge).

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [July 2, 2018, 7:34am UTC](https://meta.discourse.org/t/count-at-others-with-this-badge-includes-current-user/90089/4 "2018-07-02T07:34:31Z")

</div>

Merged in

[https://github.com/discourse/discourse/pull/6016](https://github.com/discourse/discourse/pull/6016)

Thank you @misaka4e21

---

<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: [July 6, 2018, 9:50am UTC](https://meta.discourse.org/t/count-at-others-with-this-badge-includes-current-user/90089/5 "2018-07-06T09:50:26Z")

</div>


