diff --git a/src/user/posts.js b/src/user/posts.js index 10b6a581ba..c7d8e230be 100644 --- a/src/user/posts.js +++ b/src/user/posts.js @@ -84,6 +84,9 @@ module.exports = function(User) { if (err) { return callback(err); } + if (!parseInt(uid, 10)) { + return callback(); + } db.sortedSetAdd('users:postcount', newpostcount, uid, callback); }); };