From 8788bf27dbd42a7688bee1b7d00cc04bf5ee5fd3 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 15 Jun 2019 23:32:01 -0600 Subject: [PATCH] Update PrivacySettings --- app/Http/Controllers/Settings/PrivacySettings.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/app/Http/Controllers/Settings/PrivacySettings.php b/app/Http/Controllers/Settings/PrivacySettings.php index 2df25507..d3283c92 100644 --- a/app/Http/Controllers/Settings/PrivacySettings.php +++ b/app/Http/Controllers/Settings/PrivacySettings.php @@ -134,16 +134,7 @@ trait PrivacySettings public function blockedInstanceStore(Request $request) { $this->validate($request, [ - 'domain' => [ - 'required', - 'min:3', - 'max:100', - function($attribute, $value, $fail) { - if(!filter_var($value, FILTER_VALIDATE_DOMAIN)) { - $fail($attribute. 'is invalid'); - } - } - ] + 'domain' => 'required|active_url' ]); $domain = $request->input('domain'); $instance = Instance::firstOrCreate(['domain' => $domain]);