Update Compose Apis, make media descriptions/alt text length limit configurable. Default length: 1000
This commit is contained in:
parent
67e3f6048f
commit
072d55d1a8
4 changed files with 21 additions and 18 deletions
|
@ -1048,7 +1048,7 @@ class ApiV1Controller extends Controller
|
|||
},
|
||||
'filter_name' => 'nullable|string|max:24',
|
||||
'filter_class' => 'nullable|alpha_dash|max:24',
|
||||
'description' => 'nullable|string|max:420'
|
||||
'description' => 'nullable|string|max:' . config_cache('pixelfed.max_altext_length')
|
||||
]);
|
||||
|
||||
$user = $request->user();
|
||||
|
@ -1140,7 +1140,7 @@ class ApiV1Controller extends Controller
|
|||
abort_if(!$request->user(), 403);
|
||||
|
||||
$this->validate($request, [
|
||||
'description' => 'nullable|string|max:420'
|
||||
'description' => 'nullable|string|max:' . config_cache('pixelfed.max_altext_length')
|
||||
]);
|
||||
|
||||
$user = $request->user();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue