Skip to content

Commit

Permalink
fix: guest displayname
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Nov 20, 2020
1 parent 46eb770 commit 1be08b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/user/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'] = '?';
Expand Down

0 comments on commit 1be08b2

Please sign in to comment.