mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 07:45:22 +00:00
Update AdminSettings, use better validation for user integer settings
This commit is contained in:
parent
2dcbc1d5ef
commit
d946afcc5c
1 changed files with 3 additions and 3 deletions
|
@ -742,9 +742,9 @@ trait AdminSettingsController
|
||||||
'max_account_size' => 'required|integer|min:50000',
|
'max_account_size' => 'required|integer|min:50000',
|
||||||
'admin_autofollow' => 'required',
|
'admin_autofollow' => 'required',
|
||||||
'admin_autofollow_accounts' => 'sometimes',
|
'admin_autofollow_accounts' => 'sometimes',
|
||||||
'max_user_blocks' => 'required',
|
'max_user_blocks' => 'required|integer|min:0|max:5000',
|
||||||
'max_user_mutes' => 'required',
|
'max_user_mutes' => 'required|integer|min:0|max:5000',
|
||||||
'max_domain_blocks' => 'required',
|
'max_domain_blocks' => 'required|integer|min:0|max:5000',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$adminAutofollow = $request->boolean('admin_autofollow');
|
$adminAutofollow = $request->boolean('admin_autofollow');
|
||||||
|
|
Loading…
Reference in a new issue