Merge pull request #6028 from pixelfed/staging

Update ComposeController, add addl compose settings data
pull/6037/head
(dan)iel (sup)ernault 6 months ago committed by GitHub
commit 840fa06bf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -781,8 +781,11 @@ class ComposeController extends Controller
abort_if($request->user()->has_roles && ! UserRoleService::can('can-post', $request->user()->id), 403, 'Invalid permissions for this action');
$default = [
'allowed_media_types' => config_cache('pixelfed.media_types'),
'max_caption_length' => (int) config_cache('pixelfed.max_caption_length'),
'default_license' => 1,
'media_descriptions' => false,
'max_file_size' => config_cache('pixelfed.max_photo_size'),
'max_media_attachments' => (int) config_cache('pixelfed.max_album_length'),
'max_altext_length' => config_cache('pixelfed.max_altext_length'),
];

Loading…
Cancel
Save