forked from mirror/pixelfed
Update ApiV1Controller, fix statusCreate validator
This commit is contained in:
parent
b6b15b0cce
commit
244869b7c2
|
@ -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',
|
||||
]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue