Explorar el Código

Update StatusController

Daniel Supernault hace 6 años
padre
commit
7839137349
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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, [
         $this->validate($request, [
           'photo.*'      => 'required|mimetypes:' . config('pixelfed.media_types').'|max:' . config('pixelfed.max_photo_size'),
           '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',
           'cw'           => 'nullable|string',
           'filter_class' => 'nullable|string',
           'filter_class' => 'nullable|string',
           'filter_name'  => 'nullable|string',
           'filter_name'  => 'nullable|string',