mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	fix: guest displayname
This commit is contained in:
		| @@ -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'] = '?'; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user