mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #9620, fix notif delay
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
"chatEditDuration": 0,
|
||||
"chatDeleteDuration": 0,
|
||||
"chatMessageDelay": 200,
|
||||
"notificationSendDelay": 60,
|
||||
"newbiePostDelayThreshold": 3,
|
||||
"postQueue": 0,
|
||||
"postQueueReputationThreshold": 0,
|
||||
|
||||
@@ -47,7 +47,7 @@ module.exports = function (Messaging) {
|
||||
|
||||
queueObj.timeout = setTimeout(() => {
|
||||
sendNotifications(fromUid, uids, roomId, queueObj.message);
|
||||
}, (parseFloat(meta.config.notificationSendDelay) || 60) * 1000);
|
||||
}, meta.config.notificationSendDelay * 1000);
|
||||
};
|
||||
|
||||
async function sendNotifications(fromuid, uids, roomId, messageObj) {
|
||||
|
||||
Reference in New Issue
Block a user