# Badges don't work in private / restricted topics

**URL:** https://meta.discourse.org/t/badges-dont-work-in-private-restricted-topics/67413
**Category:** Support
**Created:** [3. August 2017 um 22:30 UTC](https://meta.discourse.org/t/badges-dont-work-in-private-restricted-topics/67413 "2017-08-03T22:30:29Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![daath](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daath/32/115536_2.png) [@daath](https://meta.discourse.org/u/daath)
#### Post date: [3. August 2017 um 22:30 UTC](https://meta.discourse.org/t/badges-dont-work-in-private-restricted-topics/67413/1 "2017-08-03T22:30:29Z")

</div>

A user on my forum, who apparently is really into his “Nice reply”-badges, notified me that his “Nice reply”-badge count went from \>200 to 36 - and that it no longer counts… I am guessing this a bug.

This is the user:

> **[Nice Reply badge on E-Liquid Recipes Forum](https://forum.e-liquid-recipes.com/badges/6/nice-reply?username=ringling)**

Here is a thread with \>3000 replies in it, where a lot of his replies have \>10 likes and should be counted…

[http://forum.e-liquid-recipes.com/t/just-plain-funnies/63255](http://forum.e-liquid-recipes.com/t/just-plain-funnies/63255)

If you need any info from me, just shout 🙂 He’s pretty torn up about it 😛

---

<div class="post-metadata">

### Author: ![daath](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daath/32/115536_2.png) [@daath](https://meta.discourse.org/u/daath)
#### Post date: [5. August 2017 um 23:11 UTC](https://meta.discourse.org/t/badges-dont-work-in-private-restricted-topics/67413/2 "2017-08-05T23:11:00Z")

</div>

I got a message from him today. He got a notification that another one of his replies earned “Nice reply”. His badge count also went from 36 to 37 - Later it went back to 36 again. There is definitely something going on.

Any thoughts?

---

<div class="post-metadata">

### Author: ![daath](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daath/32/115536_2.png) [@daath](https://meta.discourse.org/u/daath)
#### Post date: [7. August 2017 um 16:18 UTC](https://meta.discourse.org/t/badges-dont-work-in-private-restricted-topics/67413/3 "2017-08-07T16:18:44Z")

</div>

Any ideas?

If at some point I rebake all posts, will that rebuild the badge stuff as well?

---

<div class="post-metadata">

### Author: ![daath](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daath/32/115536_2.png) [@daath](https://meta.discourse.org/u/daath)
#### Post date: [12. August 2017 um 18:16 UTC](https://meta.discourse.org/t/badges-dont-work-in-private-restricted-topics/67413/4 "2017-08-12T18:16:25Z")

</div>

Since no replies have come I will elaborate a bit:

The badge “Nice reply” is supposed to be automatically granted to replies that gets 10 or more likes.

[ringling’s bagde list](http://forum.e-liquid-recipes.com/badges/6/nice-reply?username=ringling) says his last “Nice reply” badge was granted May 31st.

I just skimmed through some of his replies and these got 10 or more likes:

This reply from July 26th: [http://forum.e-liquid-recipes.com/t/just-plain-funnies/63255/3579](http://forum.e-liquid-recipes.com/t/just-plain-funnies/63255/3579)

This reply from June 22nd: [http://forum.e-liquid-recipes.com/t/just-plain-funnies/63255/3352](http://forum.e-liquid-recipes.com/t/just-plain-funnies/63255/3352)

This reply from June 22nd: [http://forum.e-liquid-recipes.com/t/just-plain-funnies/63255/3348](http://forum.e-liquid-recipes.com/t/just-plain-funnies/63255/3348)

This reply from June 20th: [http://forum.e-liquid-recipes.com/t/just-plain-funnies/63255/3333](http://forum.e-liquid-recipes.com/t/just-plain-funnies/63255/3333)

He says he sometimes gets notified of a new badge, it goes from 36 to 37 and later it goes back to 36 again…

At one point he had a good deal over 200 of them. Now it’s 36.

---

<div class="post-metadata">

### Author: ![daath](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daath/32/115536_2.png) [@daath](https://meta.discourse.org/u/daath)
#### Post date: [12. August 2017 um 19:00 UTC](https://meta.discourse.org/t/badges-dont-work-in-private-restricted-topics/67413/5 "2017-08-12T19:00:12Z")

</div>

In his badge list the thread “Just plain funnies” is not there at all - And that’s where he has most of his 10-like-posts - Is the badge-thing choking on really long threads?!

---

<div class="post-metadata">

### Author: ![daath](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daath/32/115536_2.png) [@daath](https://meta.discourse.org/u/daath)
#### Post date: [12. August 2017 um 19:19 UTC](https://meta.discourse.org/t/badges-dont-work-in-private-restricted-topics/67413/6 "2017-08-12T19:19:11Z")

</div>

Heh. I think I _may_ have figured it out, but I am not sure. At one point the post was moved to a restricted area - it now sits under a category that only trust\_level\_1 and above can access. Is that why it no longer counts?! Shouldn’t it, though?

Incidentally, moving 500 posts results in a “502 Bad Gateway”-message…

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [12. August 2017 um 23:56 UTC](https://meta.discourse.org/t/badges-dont-work-in-private-restricted-topics/67413/7 "2017-08-12T23:56:45Z")

</div>

I don’t know about the “bad gateway” but AFAIK badges that involve posts use the “badge posts view” (as in derived database table). So it is very possible that moving those posts into a restricted category could have removed them from “badge posts”.  
By any chance, do you know if the “nice reply” badge is “revocable”?

---

<div class="post-metadata">

### Author: ![daath](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daath/32/115536_2.png) [@daath](https://meta.discourse.org/u/daath)
#### Post date: [13. August 2017 um 00:00 UTC](https://meta.discourse.org/t/badges-dont-work-in-private-restricted-topics/67413/8 "2017-08-13T00:00:51Z")

</div>

> [@Mittineague](#):
>
> AFAIK badges that involve posts use the “badge posts view” (as in derived database table). So it is very possible that moving those posts into a restricted category could have removed them from “badge posts”.

OK. I don’t know if I’ll move the topic back - but if I do, I hope the badges re-appear 🙂

> [@Mittineague](#):
>
> By any chance, do you know if the “nice reply” badge is “revocable”?

I wouldn’t think so, but I don’t really know 🙂

---

<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: [13. August 2017 um 01:05 UTC](https://meta.discourse.org/t/badges-dont-work-in-private-restricted-topics/67413/9 "2017-08-13T01:05:52Z")

</div>

Possible this is related to @sam’s old work on making badges only work in certain categories, I can’t recall the details.

---

<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: [14. August 2017 um 15:12 UTC](https://meta.discourse.org/t/badges-dont-work-in-private-restricted-topics/67413/10 "2017-08-14T15:12:07Z")

</div>

> [@daath](#):
>
> At one point the post was moved to a restricted area

Well yeah, if any topic is in a restricted area it is no longer a candidate for badges. Category must be accessible by **all** users of the forum for it to be badgeable.

---

<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: [14. August 2017 um 20:23 UTC](https://meta.discourse.org/t/badges-dont-work-in-private-restricted-topics/67413/11 "2017-08-14T20:23:05Z")

</div>


