mirror of
https://github.com/wassname/talk.git
synced 2026-09-10 12:43:11 +08:00
Returns the real displayname and not the one transformed.
This commit is contained in:
+1
-1
@@ -362,7 +362,7 @@ module.exports = class UsersService {
|
||||
static setDisplayName(id, displayName) {
|
||||
|
||||
return UsersService.isValidDisplayName(displayName)
|
||||
.then((displayName) => { // displayName is valid
|
||||
.then(() => { // displayName is valid
|
||||
return UserModel.update(
|
||||
{id},
|
||||
{$set: {'displayName': displayName}})
|
||||
|
||||
Reference in New Issue
Block a user