Update ComposeController, add max_media_attachments attribute

This commit is contained in:
Daniel Supernault 2025-01-24 01:52:09 -07:00
parent 629fb5a47a
commit 17918cbef4
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -773,6 +773,7 @@ class ComposeController extends Controller
$default = [
'default_license' => 1,
'media_descriptions' => false,
'max_media_attachments' => (int) config_cache('pixelfed.max_album_length'),
'max_altext_length' => config_cache('pixelfed.max_altext_length'),
];
$settings = AccountService::settings($uid);