# Making it so other users can't "invite" you to a topic

**URL:** https://meta.discourse.org/t/making-it-so-other-users-cant-invite-you-to-a-topic/63311
**Category:** Feature
**Created:** [May 24, 2017, 8:41pm UTC](https://meta.discourse.org/t/making-it-so-other-users-cant-invite-you-to-a-topic/63311 "2017-05-24T20:41:50Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![ossia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ossia/32/215651_2.png) [@ossia](https://meta.discourse.org/u/ossia)
#### Post date: [May 24, 2017, 8:41pm UTC](https://meta.discourse.org/t/making-it-so-other-users-cant-invite-you-to-a-topic/63311/1 "2017-05-24T20:41:51Z")

</div>

One of our more popular forum members is getting “invited” to a lot of topics. It’s making her notifications noisy, and she wants to be able to turn this feature off.

Is this an option Discourse could include on the user preferences page?

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [May 24, 2017, 8:48pm UTC](https://meta.discourse.org/t/making-it-so-other-users-cant-invite-you-to-a-topic/63311/2 "2017-05-24T20:48:41Z")

</div>

So the setting would be something like:

Enable invitations from: TL1\</TL2\</TL3\</TL4/Only admins & moderators

---

<div class="post-metadata">

### Author: ![IsaacAbrahamson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/isaacabrahamson/32/120984_2.png) [@IsaacAbrahamson](https://meta.discourse.org/u/IsaacAbrahamson)
#### Post date: [May 24, 2017, 10:59pm UTC](https://meta.discourse.org/t/making-it-so-other-users-cant-invite-you-to-a-topic/63311/3 "2017-05-24T22:59:50Z")

</div>

What if one user wants to disable them altogether, while another user wants to allow them from all trust levels?

---

<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: [May 24, 2017, 11:02pm UTC](https://meta.discourse.org/t/making-it-so-other-users-cant-invite-you-to-a-topic/63311/4 "2017-05-24T23:02:58Z")

</div>

> [@IsaacAbrahamson](#):
>
> What if one user wants to disable them altogether, while another user wants to allow them from all trust levels?

> [@ossia](#):
>
> Is this an option Discourse could include on the user preferences page?

As the request is for a user preference, if this was implemented as requested each user would have the ability to decide independently.

---

<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: [May 24, 2017, 11:06pm UTC](https://meta.discourse.org/t/making-it-so-other-users-cant-invite-you-to-a-topic/63311/5 "2017-05-24T23:06:49Z")

</div>

First step is, post a Forum Feedback topic asking people to desist from this. See if that helps, if not, we can look into code fixes, etc.

Muting another user in preferences, if it is a particular problem user, _should_ block invitations as well, we can verify this is the case as well.

---

<div class="post-metadata">

### Author: ![ossia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ossia/32/215651_2.png) [@ossia](https://meta.discourse.org/u/ossia)
#### Post date: [May 25, 2017, 4:40am UTC](https://meta.discourse.org/t/making-it-so-other-users-cant-invite-you-to-a-topic/63311/6 "2017-05-25T04:40:56Z")

</div>

OK - to be 100% clear, I should ask her to mute anyone who is doing this excessively.

When you say a “Forum Feedback” topic, what exactly do you mean? Like a Meta category 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: [May 25, 2017, 4:54am UTC](https://meta.discourse.org/t/making-it-so-other-users-cant-invite-you-to-a-topic/63311/7 "2017-05-25T04:54:34Z")

</div>

Yes, meta, we were afraid people would be scared and frightened of this strange word “meta” so we switched it to Forum Feedback. But same concept! The place you go to talk about the place…

---

<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: [February 25, 2018, 10:26am UTC](https://meta.discourse.org/t/making-it-so-other-users-cant-invite-you-to-a-topic/63311/8 "2018-02-25T10:26:09Z")

</div>

> [@codinghorror](#):
>
> Muting another user in preferences, if it is a particular problem user, should block invitations as well, we can verify this is the case as well.

@jomaxro could you verify this is indeed the case? Just to be absolutely sure, because unwanted invites is .. unwanted.

---

<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: [February 27, 2018, 8:56pm UTC](https://meta.discourse.org/t/making-it-so-other-users-cant-invite-you-to-a-topic/63311/10 "2018-02-27T20:56:46Z")

</div>

This is _not_ the case. I can receive topic invites from a user I have muted in my notification settings.

---

<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: [February 27, 2018, 10:27pm UTC](https://meta.discourse.org/t/making-it-so-other-users-cant-invite-you-to-a-topic/63311/11 "2018-02-27T22:27:26Z")

</div>

Ok we need to fix that @techapj with relatively high priority.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [February 28, 2018, 7:32pm UTC](https://meta.discourse.org/t/making-it-so-other-users-cant-invite-you-to-a-topic/63311/13 "2018-02-28T19:32:53Z")

</div>

I believe we should not allow invitations for muted topics as well?

Added a check for muted users and topics. Here is the PR:

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

---

<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: [February 28, 2018, 7:41pm UTC](https://meta.discourse.org/t/making-it-so-other-users-cant-invite-you-to-a-topic/63311/14 "2018-02-28T19:41:45Z")

</div>

A bit off-topic, but I’m wondering what the precedence is when there is a conflict.

i.e. when notification levels are set for Category, Topic, Group and User where one is set say to Watching, but another is set to Mute, which one “wins”?

---

<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: [February 28, 2018, 8:17pm UTC](https://meta.discourse.org/t/making-it-so-other-users-cant-invite-you-to-a-topic/63311/15 "2018-02-28T20:17:00Z")

</div>

Pretty sure mute wins but you could test it and be sure if you are curious.

---

<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: [March 2, 2018, 8:53am UTC](https://meta.discourse.org/t/making-it-so-other-users-cant-invite-you-to-a-topic/63311/16 "2018-03-02T08:53:13Z")

</div>

I was discussing with @techAPJ in the PR regarding how we should handle invitations from a user that the target user has muted. The way it is implemented now is that invitation is basically a no-op which means that a user would click invite and nothing would happen. I think this is confusing as my first assumption would be that invites are broken. I have two suggestions on how we can handle this:

1. Check for the users which have muted the current user and remove them from the autocomplete. If the user manually types the username into the form and submits, raise a generic message like “The current user is not accepting invitations at the moment”.

2. Invite the target user into the topic but automatically set the notification level to `muted`. This way, we won’t complicate the invitation flow and the target user will not receive any notification.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [March 2, 2018, 9:02am UTC](https://meta.discourse.org/t/making-it-so-other-users-cant-invite-you-to-a-topic/63311/17 "2018-03-02T09:02:34Z")

</div>

> [@tgxworld](#):
>
> Invite the target user into the topic but automatically set the notification level to muted.

The issue with this approach might be if a muted user invites another user to a certain topic that topic will become muted for invited user. They will not get anymore notifications from that topic just because a muted user invited them to that topic.

Also in case of PMs, inviting a user will create a small action post which will make other participants believe that invited user is aware of discussion/conversation, however since the invite was from a muted user the invited user will not be aware of the conversation, and moreover the future mentions will not create any notifications if we set notification level to `muted` for that PM.

> [@tgxworld](#):
>
> Check for the users which have muted the current user and remove them from the autocomplete. If the user manually types the username into the form and submits, raise a generic message like “The current user is not accepting invitations at the moment”.

This sounds like a better solution but the error message will raise eyebrows and the curious inviter might eventually realize that they have been muted? 😄

@codinghorror any thoughts about the potential solution here?

---

<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: [March 2, 2018, 11:14am UTC](https://meta.discourse.org/t/making-it-so-other-users-cant-invite-you-to-a-topic/63311/18 "2018-03-02T11:14:25Z")

</div>

I think doing nothing is OK in this condition, I don’t want to overengineer this edge case.

---

<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: [March 2, 2018, 4:21pm UTC](https://meta.discourse.org/t/making-it-so-other-users-cant-invite-you-to-a-topic/63311/19 "2018-03-02T16:21:25Z")

</div>

> [@techAPJ](#):
>
> This sounds like a better solution but the error message will raise eyebrows and the curious inviter might eventually realize that they have been muted? 😄

We already do this for muted users and PMs. I see the following if I try to PM a user who muted me:

> Sorry, jomaxro-test is not accepting messages at the moment.

---

<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: [March 3, 2018, 12:02am UTC](https://meta.discourse.org/t/making-it-so-other-users-cant-invite-you-to-a-topic/63311/20 "2018-03-03T00:02:38Z")

</div>

I personally think we need to at least display an error message here since no one would click a button and expect nothing to happen.

---

<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: [March 3, 2018, 12:13am UTC](https://meta.discourse.org/t/making-it-so-other-users-cant-invite-you-to-a-topic/63311/21 "2018-03-03T00:13:55Z")

</div>

They can just assume the invite was sent, but it wasn’t. I think it’s fine as is.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [March 3, 2018, 2:00am UTC](https://meta.discourse.org/t/making-it-so-other-users-cant-invite-you-to-a-topic/63311/22 "2018-03-03T02:00:36Z")

</div>

I think it kind of makes sense to be silent, unless we already have an error message for when you try to invite someone to the same topic two times in a row? Then you would record the invite but not send a notification, so the “you already invited them” message still shows up.

“Not accepting messages” sounds like a reasonable state to be in, and white-lie rationalizing is good here because the whole point is to avoid further interactions.  
“Not accepting invites” sounds a bit weird and more likely to tip off an uninformed user that something’s up.

[Next page](https://meta.discourse.org/t/making-it-so-other-users-cant-invite-you-to-a-topic/63311.md?page=2)
