From d946afcc5c690ab67db6787e045d1a3afd44d9b2 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 18 Mar 2024 06:13:27 -0600 Subject: [PATCH] Update AdminSettings, use better validation for user integer settings --- app/Http/Controllers/Admin/AdminSettingsController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Admin/AdminSettingsController.php b/app/Http/Controllers/Admin/AdminSettingsController.php index 75594b0a..98e16bbc 100644 --- a/app/Http/Controllers/Admin/AdminSettingsController.php +++ b/app/Http/Controllers/Admin/AdminSettingsController.php @@ -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');