mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-05 08:38:14 +02: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.username = (user.hasOwnProperty('oldUid') && parseInt(user.oldUid, 10)) ? '[[global:former-user]]' : '[[global:guest]]';
|
||||||
user.displayname = user.username;
|
user.displayname = user.username;
|
||||||
}
|
}
|
||||||
|
user.uid = uid;
|
||||||
|
|
||||||
return user;
|
return user;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user