[CONTROLLER][UserPanel] Use only the ActorTags in the settings

This commit is contained in:
Hugo Sales 2021-11-30 22:06:43 +00:00 committed by Diogo Peralta Cordeiro
parent 3fbd2cd2b9
commit a3e5f7646c
Signed by: diogo
GPG Key ID: 18D2D35001FBFAB0
1 changed files with 12 additions and 11 deletions

View File

@ -98,7 +98,8 @@ class UserPanel extends Controller
{
$user = Common::ensureLoggedIn();
$actor = $user->getActor();
$extra = ['self_tags' => $actor->getSelfTags()];
[$_, $actor_tags] = $actor->getSelfTags();
$extra = ['self_tags' => $actor_tags];
$form_definition = [
['nickname', TextType::class, ['label' => _m('Nickname'), 'required' => true, 'help' => _m('1-64 lowercase letters or numbers, no punctuation or spaces.')]],
['full_name', TextType::class, ['label' => _m('Full Name'), 'required' => false, 'help' => _m('A full name is required, if empty it will be set to your nickname.')]],