Skip to content

Node.js based forum software built for the modern web

hotfixing notif spam on chat

Julian Lam5f5b30eae80f
diff --git a/src/websockets.js b/src/websockets.js
index eebee7a90d..0aceb01c8b 100644
--- a/src/websockets.js
+++ b/src/websockets.js
@@ -300,7 +300,7 @@ var SocketIO = require('socket.io').listen(global.server, { log:false }),
userSockets[touid][x].emit('chatMessage', {fromuid:uid, username:username, message:finalMessage});
}
- notifications.create(finalMessage, 5, '#', 'notification_'+Date.now(), function(nid) {
+ notifications.create(finalMessage, 5, '#', 'notification_'+uid+'_'+touid, function(nid) {
notifications.push(nid, [touid], function(success) {
});