mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-17 05:50:25 +01:00
Compare commits
9 Commits
socket-not
...
v1.10.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dbc7c2cc46 | ||
|
|
d84030d55f | ||
|
|
80f3d68e91 | ||
|
|
f4c6602344 | ||
|
|
c8d3c3197b | ||
|
|
d51d98cb7b | ||
|
|
5e6d72552e | ||
|
|
e0d642c78a | ||
|
|
134c74358e |
@@ -2,7 +2,7 @@
|
|||||||
"name": "nodebb",
|
"name": "nodebb",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"description": "NodeBB Forum",
|
"description": "NodeBB Forum",
|
||||||
"version": "1.10.1",
|
"version": "1.10.2",
|
||||||
"homepage": "http://www.nodebb.org",
|
"homepage": "http://www.nodebb.org",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
@@ -12,12 +12,14 @@ module.exports = {
|
|||||||
db.getObject('config', next);
|
db.getObject('config', next);
|
||||||
},
|
},
|
||||||
function (config, next) {
|
function (config, next) {
|
||||||
|
var postNotifications = parseInt(config.sendPostNotifications, 10) === 1 ? 'notification' : 'none';
|
||||||
|
var chatNotifications = parseInt(config.sendChatNotifications, 10) === 1 ? 'notification' : 'none';
|
||||||
db.setObject('config', {
|
db.setObject('config', {
|
||||||
notificationType_upvote: config.notificationType_upvote || 'notification',
|
notificationType_upvote: config.notificationType_upvote || 'notification',
|
||||||
'notificationType_new-topic': config['notificationType_new-topic'] || 'notification',
|
'notificationType_new-topic': config['notificationType_new-topic'] || 'notification',
|
||||||
'notificationType_new-reply': config['notificationType_new-reply'] || config.sendPostNotifications || 'notification',
|
'notificationType_new-reply': config['notificationType_new-reply'] || postNotifications,
|
||||||
notificationType_follow: config.notificationType_follow || 'notification',
|
notificationType_follow: config.notificationType_follow || 'notification',
|
||||||
'notificationType_new-chat': config['notificationType_new-chat'] || config.sendChatNotifications || 'notification',
|
'notificationType_new-chat': config['notificationType_new-chat'] || chatNotifications,
|
||||||
'notificationType_group-invite': config['notificationType_group-invite'] || 'notification',
|
'notificationType_group-invite': config['notificationType_group-invite'] || 'notification',
|
||||||
}, next);
|
}, next);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user