mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
updateUnreadCount
This commit is contained in:
@@ -51,14 +51,13 @@ SocketPosts.reply = function(socket, data, callback) {
|
||||
return;
|
||||
}
|
||||
for(var i=0; i<uids.length; ++i) {
|
||||
if (uids[i] !== socket.uid) {
|
||||
if (parseInt(uids[i], 10) !== socket.uid) {
|
||||
websockets.in('uid_' + uids[i]).emit('event:new_post', result);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
websockets.emitTopicPostStats();
|
||||
topics.pushUnreadCount();
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user