# Improving Blocked User State

**URL:** https://meta.discourse.org/t/improving-blocked-user-state/37306
**Category:** Feature
**Tags:** moderation
**Created:** [Décembre 31, 2015, 6:04 UTC](https://meta.discourse.org/t/improving-blocked-user-state/37306 "2015-12-31T06:04:20Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [Mars 23, 2016, 8:41 UTC](https://meta.discourse.org/t/improving-blocked-user-state/37306/21 "2016-03-23T20:41:58Z")

</div>

> [@jomaxro](#):
>
> The [@moderators](https://meta.discourse.org/groups/moderators) group cannot be PM’d.

I fixed this bug. Blocked users can now send a PM to the moderators group if it’s allowed. I haven’t looked into the HasErrors problems yet, so it’s still on my list.

---

<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: [Mars 28, 2016, 4:44 UTC](https://meta.discourse.org/t/improving-blocked-user-state/37306/25 "2016-03-28T16:44:38Z")

</div>

> [@omfg](#):
>
> so to block him would be completely ineffective

In the mean while, maybe a temporary locked Trust Level 0 could help?

They could still Like, make (a limited number of) posts, but no Flags.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [Avril 2, 2016, 5:15 UTC](https://meta.discourse.org/t/improving-blocked-user-state/37306/27 "2016-04-02T17:15:29Z")

</div>

@neil, got another bug for you (sorry!). I just deleted a blocked user, and the Admin dashboard still counts that user in the blocked count (unless something else is going on here). Screenshots of the issue are below:

 ![](https://global.discourse-cdn.com/meta/original/3X/2/4/24d464ea89e7bdefc55b6f9574105ceb61f65715.png)  
 ![](https://global.discourse-cdn.com/meta/original/3X/2/d/2db80a4d797fb07e684fea77cad19c422af47d5e.png)

Edit: Also of note, if I unblock my test user, the count still remains at 2, so maybe there is something more to this issue…

Edit 2: And now it is at 0…I guess there was just a delay, please disregard this post…

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [Avril 4, 2016, 2:52 UTC](https://meta.discourse.org/t/improving-blocked-user-state/37306/28 "2016-04-04T14:52:04Z")

</div>

The dashboard data is calculated once every 30 minutes, so you won’t see real-time counts. All that data is expensive to calculate. 😁

At the bottom of the dashboard you’ll see something like this: “Dashboard last updated: April 4, 2016 10:24 AM”

---

<div class="post-metadata">

### Author: ![dannyc](https://avatars.discourse-cdn.com/v4/letter/d/49beb7/32.png) [@dannyc](https://meta.discourse.org/u/dannyc)
#### Post date: [Janvier 9, 2017, 10:25 UTC](https://meta.discourse.org/t/improving-blocked-user-state/37306/29 "2017-01-09T22:25:57Z")

</div>

I have a question about the blocked user state. If a user is blocked, will they still receive communications via email from discourse (updates from forum, messages from discourse). If no, how can I update their communication settings as an admin?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [Janvier 9, 2017, 11:11 UTC](https://meta.discourse.org/t/improving-blocked-user-state/37306/30 "2017-01-09T23:11:03Z")

</div>

Yes, they will still be emailed. The only email related feature that is disabled is mailing mode.

**Here is the full blocked user description:**

* * *

Account flagged by spam system as a problem account, all posting is disabled.

- Account may not reply to any topic
- Account may not create any topics
- Account still can like and flag (TBD if this is a good idea)
- Account can still change user prefs and about me (TBD if this is a good idea)
- Mailing list mode stops working

* * *

Note that this is in contrast to suspended users for whom all email (with one exception) is blocked.

**Suspended user description (emphasis mine):**

* * *

Account suspended from Discourse instance

- A note is displayed on user page denoting suspension reason
- Login is not allowed
- Account no longer shows up in search
- **No emails are sent to user for any notifications (digest, message and so on)**
- **As an exception any emails initiated by staff are still sent to user**

* * *

---

<div class="post-metadata">

### Author: ![TechnoBear](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/technobear/32/40546_2.png) [@TechnoBear](https://meta.discourse.org/u/TechnoBear)
#### Post date: [Janvier 28, 2017, 11:19 UTC](https://meta.discourse.org/t/improving-blocked-user-state/37306/31 "2017-01-28T11:19:29Z")

</div>

> [@jomaxro](#):
>
> Account no longer shows up in search

Is this a recent change? We’re still on Discourse 1.7.0.beta4, and I can confirm that suspended accounts _do_ show up in search (for non-mod user).

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [Janvier 28, 2017, 5:50 UTC](https://meta.discourse.org/t/improving-blocked-user-state/37306/32 "2017-01-28T17:50:17Z")

</div>

I have no idea. I was just quoting from:

> [@Understanding user statuses, roles, and permissions](https://meta.discourse.org/t/description-of-various-user-states-in-discourse/35171):
>
> bookmark This is a guide for understanding the various user statuses, roles, and permissions within Discourse, including how they affect user capabilities and how they are stored in the database. person_raising_hand Required user level: Administrator Discourse has many built-in user statuses, roles, and permissions. These statuses and roles can be seen for a given user when viewing their profile from the users’ section of the admin dashboard: Permi…

---

<div class="post-metadata">

### Author: ![TechnoBear](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/technobear/32/40546_2.png) [@TechnoBear](https://meta.discourse.org/u/TechnoBear)
#### Post date: [Janvier 29, 2017, 11:11 UTC](https://meta.discourse.org/t/improving-blocked-user-state/37306/33 "2017-01-29T11:11:15Z")

</div>

In that case, @sam, if this is how it’s meant to behave, we appear to have a wee problem…

---

<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: [Janvier 29, 2017, 11:20 UTC](https://meta.discourse.org/t/improving-blocked-user-state/37306/34 "2017-01-29T11:20:54Z")

</div>

No, that was never in Discourse to my knowledge. @sam kinda made that part up, “user doesn’t appear in search.” It could work either way, I don’t have any feelings about it at all.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [Janvier 29, 2017, 12:21 UTC](https://meta.discourse.org/t/improving-blocked-user-state/37306/35 "2017-01-29T12:21:21Z")

</div>

I plan to be in the “search” area over the next few weeks, I might look at ensuring Suspended users only appear in Search for staff. But depending on the complexity it may add, I might not pursue it.

---

<div class="post-metadata">

### Author: ![TechnoBear](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/technobear/32/40546_2.png) [@TechnoBear](https://meta.discourse.org/u/TechnoBear)
#### Post date: [Janvier 29, 2017, 1:38 UTC](https://meta.discourse.org/t/improving-blocked-user-state/37306/36 "2017-01-29T13:38:27Z")

</div>

It makes sense to me that suspended users shouldn’t appear in search, but it’s no big deal. I just think that Reality and FAQs should match. 🐻

---

<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: [Février 21, 2017, 4:57 UTC](https://meta.discourse.org/t/improving-blocked-user-state/37306/37 "2017-02-21T16:57:30Z")

</div>

> [@codinghorror](#):
>
> No, that was never in Discourse to my knowledge. @sam kinda made that part up, “user doesn’t appear in search.” It could work either way, I don’t have any feelings about it at all.

Code says this has always been the case, unless you are staff.

> <https://github.com/discourse/discourse/blob/4332f0dde1e06abfeec091ef3f930d9254408b87/app/models/user_search.rb#L28>

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [Février 21, 2017, 4:59 UTC](https://meta.discourse.org/t/improving-blocked-user-state/37306/38 "2017-02-21T16:59:52Z")

</div>

Sam, here’s my non-staff sock account searching and locating a suspended user:

 ![](https://global.discourse-cdn.com/meta/original/3X/d/8/d8402dd5347a1158d2045a3fa99706c1addd44ef.png)  
 ![](https://global.discourse-cdn.com/meta/original/3X/f/a/fa867e8bee2dff72adf6b516a81d2de7b4ecf872.jpg)  
 ![](https://global.discourse-cdn.com/meta/original/3X/9/6/96a8d2cf437154346124ae4c3898a9a5846c571f.png)

---

<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: [Février 21, 2017, 5:06 UTC](https://meta.discourse.org/t/improving-blocked-user-state/37306/39 "2017-02-21T17:06:45Z")

</div>

Ahh yeah, I think what I meant to say is that you can’t @mention a suspended user unless you are staff.

I got a bit confused between user search which is used for @mentions and global search which uses a different code path.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [Février 21, 2017, 5:07 UTC](https://meta.discourse.org/t/improving-blocked-user-state/37306/40 "2017-02-21T17:07:39Z")

</div>

In that case, I’d like to request that blocked and/or suspended users be hidden from “global search” for non-staff users.

---

<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: [Février 21, 2017, 5:09 UTC](https://meta.discourse.org/t/improving-blocked-user-state/37306/41 "2017-02-21T17:09:22Z")

</div>

@codinghorror’s call then 🙂 I am not really fussed either way.

---

<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: [Février 21, 2017, 10:27 UTC](https://meta.discourse.org/t/improving-blocked-user-state/37306/42 "2017-02-21T22:27:10Z")

</div>

I am not sure I agree with this request. Should /users directory also suppress them? And why? What purpose does that serve, what problem does that solve?

---

<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: [Février 21, 2017, 10:43 UTC](https://meta.discourse.org/t/improving-blocked-user-state/37306/43 "2017-02-21T22:43:20Z")

</div>

I’m not sure that it is a problem. The reasons I can think of are

- a type of “punishment” against the problem user. eg. their profile, posts, etc. can’t be easily found
- a type of “protection” for the problem user, eg. removing evidence of their bad behavior from public view

---

<div class="post-metadata">

### Author: ![JagWaugh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagwaugh/32/69335_2.png) [@JagWaugh](https://meta.discourse.org/u/JagWaugh)
#### Post date: [Février 21, 2017, 11:17 UTC](https://meta.discourse.org/t/improving-blocked-user-state/37306/44 "2017-02-21T23:17:08Z")

</div>

In my opinion, if a user has done something which warrants a suspension, then that should be visible to the normal users.

If I decide to suspend an account then there is already some tension in the air. If someone then asks “What happened to Bill?” in public and I answer “I suspended him” then it is a bit like a public shaming. If the information about the suspension is there to see for those who check Bill’s profile, but it isn’t blared out in public.

[Page précédente](https://meta.discourse.org/t/improving-blocked-user-state/37306.md?page=1)

[Page suivante](https://meta.discourse.org/t/improving-blocked-user-state/37306.md?page=3)
