浏览代码

Update StatusController

Daniel Supernault 6 年之前
父节点
当前提交
0c6d0c3ca9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Http/Controllers/StatusController.php

+ 1 - 1
app/Http/Controllers/StatusController.php

@@ -112,7 +112,7 @@ class StatusController extends Controller
           'photo.*'      => 'required|mimetypes:' . config('pixelfed.media_types').'|max:' . config('pixelfed.max_photo_size'),
           'caption'      => 'nullable|string|max:'.config('pixelfed.max_caption_length'),
           'cw'           => 'nullable|string',
-          'filter_class' => 'nullable|string',
+          'filter_class' => 'nullable|alpha_dash|max:30',
           'filter_name'  => 'nullable|string',
           'visibility'   => 'required|string|min:5|max:10',
         ]);