mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 21:30:30 +01:00
fix: set uid in case its spider(-1), closes #12621
This commit is contained in:
@@ -120,6 +120,7 @@ module.exports = function (User) {
|
||||
user.username = (user.hasOwnProperty('oldUid') && parseInt(user.oldUid, 10)) ? '[[global:former-user]]' : '[[global:guest]]';
|
||||
user.displayname = user.username;
|
||||
}
|
||||
user.uid = uid;
|
||||
|
||||
return user;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user