forked from GNUsocial/gnu-social
[COMPONENTS][Posting] LocaleType::class doesn't have a default attribute, replaced with 'preferred_choices' instead.
This commit is contained in:
parent
9a23e03330
commit
7fef18e95a
@ -101,7 +101,7 @@ class Posting extends Component
|
|||||||
'required' => false,
|
'required' => false,
|
||||||
'invalid_message' => _m('Attachment not valid.'),
|
'invalid_message' => _m('Attachment not valid.'),
|
||||||
]],
|
]],
|
||||||
['language', LocaleType::class, ['label' => _m('Note language:'), 'multiple' => false, 'default' => $user->getPreferredLanguageChoice()]],
|
['language', LocaleType::class, ['label' => _m('Note language:'), 'multiple' => false, 'preferred_choices' => Actor::getById($actor_id)->getPreferredLanguageChoice()]],
|
||||||
];
|
];
|
||||||
|
|
||||||
if (\count($available_content_types) > 1) {
|
if (\count($available_content_types) > 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user