mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-08 18:43:04 +02:00
parseInt uid
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user