mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
feat: add quiet to action:settings.set
Makes it possible to ignore quiet updates without abusing the `filter` hook
This commit is contained in:
@@ -95,6 +95,7 @@ Settings.set = async function (hash, values, quiet) {
|
|||||||
plugins.hooks.fire('action:settings.set', {
|
plugins.hooks.fire('action:settings.set', {
|
||||||
plugin: hash,
|
plugin: hash,
|
||||||
settings: { ...values, ...sortedListData }, // Add back sorted list data to values hash
|
settings: { ...values, ...sortedListData }, // Add back sorted list data to values hash
|
||||||
|
quiet,
|
||||||
});
|
});
|
||||||
|
|
||||||
pubsub.publish(`action:settings.set.${hash}`, values);
|
pubsub.publish(`action:settings.set.${hash}`, values);
|
||||||
|
|||||||
Reference in New Issue
Block a user