diff --git a/src/user/blocks.js b/src/user/blocks.js index c390d41679..a3021968e8 100644 --- a/src/user/blocks.js +++ b/src/user/blocks.js @@ -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); }); };