Update ApiV1Controller, fix statusCreate validator

This commit is contained in:
Daniel Supernault 2022-03-22 23:32:12 -06:00
parent 89303fa478
commit b6b15b0cce
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -2085,7 +2085,7 @@ class ApiV1Controller extends Controller
$this->validate($request, [ $this->validate($request, [
'status' => 'nullable|string', 'status' => 'nullable|string',
'in_reply_to_id' => 'nullable|integer', 'in_reply_to_id' => 'nullable',
'media_ids' => 'array|max:' . config_cache('pixelfed.max_album_length'), 'media_ids' => 'array|max:' . config_cache('pixelfed.max_album_length'),
'media_ids.*' => 'integer|min:1', 'media_ids.*' => 'integer|min:1',
'sensitive' => 'nullable|boolean', 'sensitive' => 'nullable|boolean',