mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 08:25:46 +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);
|
||||
User.blocks._cache.set(uid, blocked);
|
||||
User.blocks._cache.set(parseInt(uid, 10), blocked);
|
||||
callback(null, blocked);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user