Visual indicator when a user can't see a mention

Currently when a user cannot “see” or receive a notification of a mention of their username
there could be a better visual indicator.

I would like to see some like how Facebook handles this…

Normally a mention on Facebook looks like this (a blue coloured link):

And a mention where the user can’t see the post is like this (grey with a grey “no entry” icon):

When you hover over the username a “user card” appears with the following addition:

So a more complete screen grab looks like this:

And the “user card”:


This would be a good change but mostly useful in PMs? I guess if you had a lot of secure categories as well.


Secure categories was where I was thinking mostly.

I work with a not-for-profit where more content is in secure categories than not.

Additionally a larger portion of the user base has access to the secure categories than not, it becomes important for them to know if other users can see the content when interacting.


Making this happen in the composer preview window would be huge! I’ve been asked before (and had to ask myself the first time) what happens if you @mention a user in a PM or secure category. Showing clearly that they will not be notified in any way is great.


I am curious, how difficult do you feel this change would be @sam?


It’s not too hard but you don’t want to tell people they are muted


The muted case I am not worried about, just the general “this person won’t be notified”.

One thing I have done myself a fair bit is be in a PM and say something like hey @user can you have a look at this? and they never get notified because, duh, they are not on the PM. It would be nice to have a popup that says:

You mentioned @user but they won’t be notified because they are unable to see this personal message. Would you like to add them to this PM?

And similarly:

You mentioned @user but they won’t be notified because they do not have access to this category. Would you like to add them to a group that has access to this category?


This isn’t for being muted, this would be

With changes, because you would need a reason code


I’m going to be working on this feature soon-ish :slight_smile:


I have a very rough version of this working now. I still need to clean it up and add a few tests, but it is getting close. Should have time again later this week to finish this off.


FYI, while implementing this feature, I discovered the Group Mention Notification wasn’t working anymore.

Initially, there was supposed to be a notification when mentioning a group that would tell you, you are about to warn X number of people.

I’ve corrected this functionality with my changes.

Screenshots below

Group Notification

User Mention (when they can’t see the discussion)

User Mention in a PM

Added PM example


Those questions, are they intended to be rhetorical, or will there a link/button to click to answer “yes” to the question?

If not, I would like to suggestion copy changes:

Change “Would you like to add them to a group that has access to this category?” to “You will need to add them to a group that has access to this category.” (a statement)
and change “Would you like to add them to this PM?” to “You will need to invite them to this PM.” (again, a statement)

Regardless, nice job! This will be really nice when chatting in PMs, especially as it makes it clear to new staff that they can mention a user without worrying about them seeing the PM.


Questions turned into Statements :slight_smile: and PR submitted


very happy about this improvement - thanks @cpradio! :rocket:

1 Like

I still feel this would be a nice refinement for secure categories.

It would be nice if:

  • The @mention dialog prioritized users that are actually “mentionable” in a topic.

  • It had a visual indicator showing that a user is not going to get the mention


This still notifies too early, though, I get tons of false positives. We need to delay the warning substantially over where it fires now.

1 Like

I have experienced the modal as a minor annoyance.

At SitePoint we have restricted Staff categories. One of the Staff members that might be mentioned has the name “PaulOB”. There are also non-Staff members with the names “PauL” and “Paulo”

I can simply ignore the modal that covers the preview pane, but if I close the “paul does not have access” to see the preview I get another for Paulo.

I consider it only a minor annoyance, but if the modal could not happen until a space character after the mention I think it would be better.


Yes this, if it is a low risk change we should get this in @sam the way it is now is pretty bad.

Can do that first thing after 1.9 release, not fiddling with front end this close to release.


What if the style of the @mention were just a bit different, and hovering or clicking on it in the preview would tell you?

1 Like