mirror of
https://github.com/flarum/framework.git
synced 2025-02-02 14:18:46 +08:00
Fix reverting nickname to username in EditUserModal
This commit is contained in:
parent
ad8707d9fc
commit
c603c39aaf
|
@ -45,7 +45,7 @@ app.initializers.add('flarum/nicknames', () => {
|
|||
if (app.forum.attribute('displayNameDriver') !== 'nickname') return;
|
||||
|
||||
const user = this.attrs.user;
|
||||
if (this.nickname() !== this.attrs.user.username()) {
|
||||
if (this.nickname() !== this.attrs.user.displayName()) {
|
||||
data.nickname = this.nickname();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user