diff --git a/app/Http/Middleware/EmailVerificationCheck.php b/app/Http/Middleware/EmailVerificationCheck.php index e3d278c3..5c543b5c 100644 --- a/app/Http/Middleware/EmailVerificationCheck.php +++ b/app/Http/Middleware/EmailVerificationCheck.php @@ -17,7 +17,7 @@ class EmailVerificationCheck public function handle($request, Closure $next) { if ($request->user() && - config_cache('pixelfed.enforce_email_verification') && + config('pixelfed.enforce_email_verification') && is_null($request->user()->email_verified_at) && !$request->is( 'i/auth/*',