How to disable watched/tracked category on users profile?

(Daniela) #1

A few months ago I set the option on User Preference to watching or tracking some categories by default.

After I found out that those changes are not retro-active. So when I deleted the categories list, those changes are active only for new users.

Now I see the forum is sending a very high numbers of mails from the categories watched/tracked.

How can I reset those change?

I cannot delete the watched/tracked categories from each user profile because they are about 2500!
So I want reset those settings for all users, and then, every active user can add his favourite category again from their profile.

Is there a way to do that?

(Jeff Atwood) #2

It is always capped at 100 emails per day no matter what.

You will need to issue queries to change the pref for all users. There are existing topics here with the syntax.

(Sam Saffron) #3

This is simplified per:

How can I reset those change?

Requires console

./launcher enter app
rails c
% CategoryUser.destroy_all
% TopicUser.where(notification_level: 3).update_all(notification_level: 1)

This means nobody will be watching anything and nobody will be watching any category.