Merge pull request #3353 from pixelfed/staging

Update SpaController, fix typo
This commit is contained in:
daniel 2022-04-03 01:47:51 -06:00 committed by GitHub
commit 9aa7b0f772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class SpaController extends Controller
public function updateLanguage(Request $request)
{
abort_unless(config('exp.spa'), 404);
abort_unless($req->user(), 404);
abort_unless($request->user(), 404);
$this->validate($request, [
'v' => 'required|in:0.1,0.2',
'l' => 'required|alpha_dash|max:5'