mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
committed by
GitHub
parent
e824385e64
commit
084e15b447
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user