mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 23:30:36 +01:00
dont add guests to users:postcount zset
This commit is contained in:
@@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user