Skip to content

Node.js based forum software built for the modern web

fix: #9620, fix notif delay

Barış Soner Uşaklı73f40e96a508
diff --git a/install/data/defaults.json b/install/data/defaults.json
index 2ea9833d79..bfbf6a4b39 100644
--- a/install/data/defaults.json
+++ b/install/data/defaults.json
@@ -19,6 +19,7 @@
"chatEditDuration": 0,
"chatDeleteDuration": 0,
"chatMessageDelay": 200,
+ "notificationSendDelay": 60,
"newbiePostDelayThreshold": 3,
"postQueue": 0,
"postQueueReputationThreshold": 0,
diff --git a/src/messaging/notifications.js b/src/messaging/notifications.js
index 748fd2799c..895138c7e8 100644
--- a/src/messaging/notifications.js
+++ b/src/messaging/notifications.js
@@ -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) {