diff --git a/src/user/create.js b/src/user/create.js index 1d1543e863..fe67b4a728 100644 --- a/src/user/create.js +++ b/src/user/create.js @@ -75,6 +75,13 @@ module.exports = function(User) { userData.uid = uid; db.setObject('user:' + uid, userData, next); }, + function(next) { + if (parseInt(meta.config['sounds:default_enabled'], 10) === 1) { + return User.setSetting(userData.uid, 'notificationSounds', 1, next); + } + + next(); + }, function(next) { async.parallel([ function(next) { diff --git a/src/views/admin/settings/general.tpl b/src/views/admin/settings/general.tpl index 147657195e..a9ab0a96ff 100644 --- a/src/views/admin/settings/general.tpl +++ b/src/views/admin/settings/general.tpl @@ -64,6 +64,26 @@ + +
+
+ Sounds +
+
+
+
+ +
+

+ Users can toggle this setting in their profile settings page. +

+
+
+
+
Favicon