forked from mirror/pixelfed
Update SpaController, fix variable typo. Fixes #3268
This commit is contained in:
parent
1a7a4a052f
commit
8d1af1d6a1
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue