mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-06 07:40:43 +01:00
misc fixes
handle spider uids properly
This commit is contained in:
@@ -94,7 +94,7 @@ module.exports = function (User) {
|
||||
User.incrementUserFieldBy(uid, 'postcount', value, next);
|
||||
},
|
||||
function (newpostcount, next) {
|
||||
if (!parseInt(uid, 10)) {
|
||||
if (parseInt(uid, 10) <= 0) {
|
||||
return next();
|
||||
}
|
||||
db.sortedSetAdd('users:postcount', newpostcount, uid, next);
|
||||
|
||||
Reference in New Issue
Block a user