From 72afc1806ee386b355a014cec31e93ccc70a04f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 24 Dec 2018 16:05:11 -0500 Subject: [PATCH] fix: uid filtering --- src/socket.io/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket.io/helpers.js b/src/socket.io/helpers.js index 5e1f85cd66..9a54d87f99 100644 --- a/src/socket.io/helpers.js +++ b/src/socket.io/helpers.js @@ -29,7 +29,7 @@ SocketHelpers.notifyNew = function (uid, type, result) { user.getUidsFromSet('users:online', 0, -1, next); }, function (uids, next) { - uids = uids.filter(uid => parseInt(uid, 10) !== uid); + uids = uids.filter(toUid => parseInt(toUid, 10) !== uid); privileges.topics.filterUids('read', tid, uids, next); }, function (uids, next) {