From f51df1c486c30329352967ea65261f1c6b94a2fe Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 22 Oct 2024 14:52:25 +0200 Subject: [PATCH] feat(nicknames): allow OAuth to provide a nickname (#4004) --- extensions/nicknames/js/src/forum/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/nicknames/js/src/forum/index.js b/extensions/nicknames/js/src/forum/index.js index e83f578236..ae618bbb25 100644 --- a/extensions/nicknames/js/src/forum/index.js +++ b/extensions/nicknames/js/src/forum/index.js @@ -57,7 +57,7 @@ app.initializers.add('flarum-nicknames', () => { extend('flarum/forum/components/SignUpModal', 'oninit', function () { if (app.forum.attribute('displayNameDriver') !== 'nickname') return; - this.nickname = Stream(this.attrs.username || ''); + this.nickname = Stream(this.attrs.nickname || this.attrs.username || ''); }); extend('flarum/forum/components/SignUpModal', 'onready', function () {