mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-20 05:21:27 +00:00
Merge pull request #3600 from pixelfed/staging
Update update_credentials endpoint, enforce validator limits
This commit is contained in:
commit
c62575af70
1 changed files with 3 additions and 3 deletions
|
@ -217,10 +217,10 @@ class ApiV1Controller extends Controller
|
|||
|
||||
$this->validate($request, [
|
||||
'avatar' => 'sometimes|mimetypes:image/jpeg,image/png|min:10|max:' . config('pixelfed.max_avatar_size'),
|
||||
'display_name' => 'nullable|string',
|
||||
'note' => 'nullable|string',
|
||||
'display_name' => 'nullable|string|max:30',
|
||||
'note' => 'nullable|string|max:200',
|
||||
'locked' => 'nullable',
|
||||
'website' => 'nullable',
|
||||
'website' => 'nullable|string|max:120',
|
||||
// 'source.privacy' => 'nullable|in:unlisted,public,private',
|
||||
// 'source.sensitive' => 'nullable|boolean'
|
||||
], [
|
||||
|
|
Loading…
Reference in a new issue