1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-26 01:36:43 +00:00

Update SpaController, fix variable typo. Fixes #3268

This commit is contained in:
Daniel Supernault 2022-02-19 12:42:16 -07:00
parent 1a7a4a052f
commit 8d1af1d6a1
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -119,7 +119,7 @@ class SpaController extends Controller
public function usernameRedirect(Request $request, $username) public function usernameRedirect(Request $request, $username)
{ {
abort_unless($req->user(), 404); abort_unless($request->user(), 404);
$id = AccountService::usernameToId($username); $id = AccountService::usernameToId($username);
if(!$id) { if(!$id) {
return redirect('/i/web/404'); return redirect('/i/web/404');