mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 16:35:47 +01:00
misc fixes
handle spider uids properly
This commit is contained in:
@@ -18,7 +18,7 @@ module.exports = function (User) {
|
||||
var deletesInProgress = {};
|
||||
|
||||
User.delete = function (callerUid, uid, callback) {
|
||||
if (!parseInt(uid, 10)) {
|
||||
if (parseInt(uid, 10) <= 0) {
|
||||
return setImmediate(callback, new Error('[[error:invalid-uid]]'));
|
||||
}
|
||||
if (deletesInProgress[uid]) {
|
||||
|
||||
Reference in New Issue
Block a user