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:
parent
1a7a4a052f
commit
8d1af1d6a1
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue