|
|
@ -173,6 +173,7 @@ module.exports = function (User) {
|
|
|
|
if (!parseInt(user.uid, 10)) {
|
|
|
|
if (!parseInt(user.uid, 10)) {
|
|
|
|
user.uid = 0;
|
|
|
|
user.uid = 0;
|
|
|
|
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.userslug = '';
|
|
|
|
user.userslug = '';
|
|
|
|
user.picture = User.getDefaultAvatar();
|
|
|
|
user.picture = User.getDefaultAvatar();
|
|
|
|
user['icon:text'] = '?';
|
|
|
|
user['icon:text'] = '?';
|
|
|
|