From 353595eb97373e74ef6d8f9077a37ad7816f0b46 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Fri, 30 Apr 2021 13:18:58 +0000 Subject: [PATCH] [Posting] Add missing default visibility option --- components/Posting/Posting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Posting/Posting.php b/components/Posting/Posting.php index e851bf8c75..13158288d7 100644 --- a/components/Posting/Posting.php +++ b/components/Posting/Posting.php @@ -76,7 +76,7 @@ END; $form = Form::create([ ['content', TextareaType::class, ['label' => ' ', 'data' => '', 'attr' => ['placeholder' => _m($placeholder_string[$rand_key])]]], ['attachments', FileType::class, ['label' => ' ', 'data' => null, 'multiple' => true, 'required' => false]], - ['visibility', ChoiceType::class, ['label' => _m('Visibility:'), 'expanded' => true, 'choices' => [_m('Public') => 'public', _m('Instance') => 'instance', _m('Private') => 'private']]], + ['visibility', ChoiceType::class, ['label' => _m('Visibility:'), 'expanded' => true, 'data' => 'public', 'choices' => [_m('Public') => 'public', _m('Instance') => 'instance', _m('Private') => 'private']]], ['to', ChoiceType::class, ['label' => _m('To:'), 'multiple' => true, 'expanded' => true, 'choices' => $to_tags]], ['post', SubmitType::class, ['label' => _m('Post')]], ]);