FIX: modify notification after remove auto_watch_category (#10568)

When a category is removed from `auto_watch_category` we are removing
CategoryUser. However, there are still TopicUser with notification level
set to `watching` which was inherited from Category.

We should move them back to `regular` unless they were modified by a user.
This commit is contained in:
Krzysztof Kotlarek
2020-09-01 13:07:41 +10:00
committed by GitHub
parent e824385e64
commit 084e15b447
3 changed files with 41 additions and 8 deletions

View File

@@ -32,7 +32,7 @@ SiteSetting.reopenClass({
data[key] = value;
if (opts["updateExistingUsers"] === true) {
data["updateExistingUsers"] = true;
data["update_existing_user"] = true;
}
return ajax(`/admin/site_settings/${key}`, { type: "PUT", data });