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