# Disable post notifications on one topic only

**URL:** https://meta.discourse.org/t/disable-post-notifications-on-one-topic-only/69847
**Category:** Support
**Created:** [September 11, 2017, 10:34pm UTC](https://meta.discourse.org/t/disable-post-notifications-on-one-topic-only/69847 "2017-09-11T22:34:32Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![bufordtaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bufordtaylor/32/120708_2.png) [@bufordtaylor](https://meta.discourse.org/u/bufordtaylor)
#### Post date: [September 11, 2017, 10:34pm UTC](https://meta.discourse.org/t/disable-post-notifications-on-one-topic-only/69847/1 "2017-09-11T22:34:33Z")

</div>

Hi all,

Our community has a surge of invite-only users all at once (roughly 400 of them) every few months. We make a new topic called “Introduce yourself to the Community” where all 400 people can say a few words.

In order to combat spam, we turn off all emails while this particular thread is live, but it’s not ideal because legitimate topics are posted and do not surface in the users’ inboxes.

Is there a way to disable all notifications for this one topic? (or disable all notifications for posts on this one topic)

I’ve installed discourse on digital ocean and am happy to do anything within the console. I had a look through the code but didn’t find anything relevant.

---

<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: [September 11, 2017, 10:36pm UTC](https://meta.discourse.org/t/disable-post-notifications-on-one-topic-only/69847/2 "2017-09-11T22:36:32Z")

</div>

Users can mute the topic, that’s all I can think of at the moment.

You could run a Ruby/Rails command at the Rails command line to mute the topic for all existing users by updating their user preferences, but new users who sign up _after_ you run that command will not have the topic muted.

**Do note that only people with that topic in a “watched” state will get emailed for new replies** , and even then, only if their web browser has not pinged the website in the last 10 minutes. So you could target this a little more surgically to update all user preferences from “watched” or “tracked” to “normal” on this particular topic. Perhaps @techapj could advise on the exact Rails command?

---

<div class="post-metadata">

### Author: ![bufordtaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bufordtaylor/32/120708_2.png) [@bufordtaylor](https://meta.discourse.org/u/bufordtaylor)
#### Post date: [September 11, 2017, 10:43pm UTC](https://meta.discourse.org/t/disable-post-notifications-on-one-topic-only/69847/3 "2017-09-11T22:43:42Z")

</div>

Got it. I think we’re happy with new users receiving notifications for this topic (since there will be no new users for another few months).

Looking at the code, it seems `Topic.find(id).topic_users.update_all(notification_level: 0)` will do the trick. Can anyone confirm?

0 appears to be the muted state according to this code: [discourse/app/assets/javascripts/discourse/lib/notification-levels.js.es6 at c6ff387ce9d7660c804e9ba55096167dc427a751 · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/c6ff387ce9d7660c804e9ba55096167dc427a751/app/assets/javascripts/discourse/lib/notification-levels.js.es6)

---

<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: [September 11, 2017, 10:51pm UTC](https://meta.discourse.org/t/disable-post-notifications-on-one-topic-only/69847/4 "2017-09-11T22:51:10Z")

</div>

I wouldn’t mute the topic for everyone, I’d set it to normal.

---

<div class="post-metadata">

### Author: ![bufordtaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bufordtaylor/32/120708_2.png) [@bufordtaylor](https://meta.discourse.org/u/bufordtaylor)
#### Post date: [September 11, 2017, 10:53pm UTC](https://meta.discourse.org/t/disable-post-notifications-on-one-topic-only/69847/5 "2017-09-11T22:53:07Z")

</div>

Gotcha. So you recommend setting it to `1`, `REGULAR`?

> <https://github.com/discourse/discourse/blob/c6ff387ce9d7660c804e9ba55096167dc427a751/app/assets/javascripts/discourse/lib/notification-levels.js.es6>

---

<div class="post-metadata">

### Author: ![bufordtaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bufordtaylor/32/120708_2.png) [@bufordtaylor](https://meta.discourse.org/u/bufordtaylor)
#### Post date: [September 11, 2017, 11:01pm UTC](https://meta.discourse.org/t/disable-post-notifications-on-one-topic-only/69847/6 "2017-09-11T23:01:03Z")

</div>

Went with Normal. All appears well. Thanks @codinghorror

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [September 12, 2017, 4:03am UTC](https://meta.discourse.org/t/disable-post-notifications-on-one-topic-only/69847/7 "2017-09-12T04:03:57Z")

</div>

My suggestion would be to create a category for those messages and people could adjust the category watching.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [September 24, 2019, 5:13am UTC](https://meta.discourse.org/t/disable-post-notifications-on-one-topic-only/69847/8 "2019-09-24T05:13:48Z")

</div>



---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [May 11, 2023, 6:32pm UTC](https://meta.discourse.org/t/disable-post-notifications-on-one-topic-only/69847/9 "2023-05-11T18:32:26Z")

</div>



---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [July 3, 2023, 12:36pm UTC](https://meta.discourse.org/t/disable-post-notifications-on-one-topic-only/69847/10 "2023-07-03T12:36:16Z")

</div>


