Update AdminSettings, use better validation for user integer settings

This commit is contained in:
Daniel Supernault 2024-03-18 06:13:27 -06:00
parent 2dcbc1d5ef
commit d946afcc5c
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -742,9 +742,9 @@ trait AdminSettingsController
'max_account_size' => 'required|integer|min:50000',
'admin_autofollow' => 'required',
'admin_autofollow_accounts' => 'sometimes',
'max_user_blocks' => 'required',
'max_user_mutes' => 'required',
'max_domain_blocks' => 'required',
'max_user_blocks' => 'required|integer|min:0|max:5000',
'max_user_mutes' => 'required|integer|min:0|max:5000',
'max_domain_blocks' => 'required|integer|min:0|max:5000',
]);
$adminAutofollow = $request->boolean('admin_autofollow');