mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 16:35:47 +01:00
fixed blocking cache derp
This commit is contained in:
@@ -58,7 +58,7 @@ module.exports = function (User) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
blocked = blocked.map(uid => parseInt(uid, 10)).filter(Boolean);
|
blocked = blocked.map(uid => parseInt(uid, 10)).filter(Boolean);
|
||||||
User.blocks._cache.set(uid, blocked);
|
User.blocks._cache.set(parseInt(uid, 10), blocked);
|
||||||
callback(null, blocked);
|
callback(null, blocked);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user