Node.js based forum software built for the modern web
parseInt uid
Barış Soner Uşaklı8eea6017fe74
diff --git a/src/user/blocks.js b/src/user/blocks.jsindex a3021968e8..e2689d8df9 100644--- a/src/user/blocks.js+++ b/src/user/blocks.js@@ -48,8 +48,8 @@ module.exports = function (User) {};User.blocks.list = function (uid, callback) {- if (User.blocks._cache.has(uid)) {- return setImmediate(callback, null, User.blocks._cache.get(uid));+ if (User.blocks._cache.has(parseInt(uid, 10))) {+ return setImmediate(callback, null, User.blocks._cache.get(parseInt(uid, 10)));}db.getSortedSetRange('uid:' + uid + ':blocked_uids', 0, -1, function (err, blocked) {