浏览代码

Update ComposeController, add max_media_attachments attribute

Daniel Supernault 5 月之前
父节点
当前提交
17918cbef4
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/Http/Controllers/ComposeController.php

+ 1 - 0
app/Http/Controllers/ComposeController.php

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