add filter:user.saveSettings

v1.18.x
Baris Usakli 8 years ago
parent 5ce9f898b2
commit 6cd0582b42

@ -176,7 +176,10 @@ module.exports = function (User) {
async.waterfall([ async.waterfall([
function (next) { function (next) {
db.setObject('user:' + uid + ':settings', settings, next); plugins.fireHook('filter:user.saveSettings', { settings: settings, data: data }, next);
},
function (result, next) {
db.setObject('user:' + uid + ':settings', result.settings, next);
}, },
function (next) { function (next) {
User.updateDigestSetting(uid, data.dailyDigestFreq, next); User.updateDigestSetting(uid, data.dailyDigestFreq, next);

Loading…
Cancel
Save