fix: guest displayname

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 46eb77011d
commit 1be08b2e8b

@ -173,6 +173,7 @@ module.exports = function (User) {
if (!parseInt(user.uid, 10)) {
user.uid = 0;
user.username = (user.hasOwnProperty('oldUid') && parseInt(user.oldUid, 10)) ? '[[global:former_user]]' : '[[global:guest]]';
user.displayname = user.username;
user.userslug = '';
user.picture = User.getDefaultAvatar();
user['icon:text'] = '?';

Loading…
Cancel
Save