Browse Source

Merge pull request #893 from pixelfed/frontend-ui-refactor

Update StatusController
daniel 6 years ago
parent
commit
64b38e0003
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/StatusController.php

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

@@ -110,7 +110,7 @@ class StatusController extends Controller
 
         $this->validate($request, [
           'photo.*'      => 'required|mimetypes:' . config('pixelfed.media_types').'|max:' . config('pixelfed.max_photo_size'),
-          'caption'      => 'string|max:'.config('pixelfed.max_caption_length'),
+          'caption'      => 'nullable|string|max:'.config('pixelfed.max_caption_length'),
           'cw'           => 'nullable|string',
           'filter_class' => 'nullable|string',
           'filter_name'  => 'nullable|string',