Node.js based forum software built for the modern web
dont add guests to users:postcount zset
Barış Soner Uşaklıe0b4a35a25bd
diff --git a/src/user/posts.js b/src/user/posts.jsindex 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);});};