Update ApiV1Controller, fix statusCreate validator

This commit is contained in:
Daniel Supernault 2022-03-22 23:35:16 -06:00
parent b6b15b0cce
commit 244869b7c2
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -2086,9 +2086,8 @@ class ApiV1Controller extends Controller
$this->validate($request, [
'status' => 'nullable|string',
'in_reply_to_id' => 'nullable',
'media_ids' => 'array|max:' . config_cache('pixelfed.max_album_length'),
'media_ids.*' => 'integer|min:1',
'sensitive' => 'nullable|boolean',
'media_ids' => 'sometimes|array|max:' . config_cache('pixelfed.max_album_length'),
'sensitive' => 'nullable',
'visibility' => 'string|in:private,unlisted,public',
]);