mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 17:26:43 +00:00
Update ProfileController, add /i/me redirect
This commit is contained in:
parent
4408e18293
commit
c15cbe3fbb
1 changed files with 6 additions and 0 deletions
|
@ -245,4 +245,10 @@ class ProfileController extends Controller
|
|||
}
|
||||
return view('profile.following', compact('user', 'profile', 'following', 'owner', 'is_following', 'is_admin', 'settings'));
|
||||
}
|
||||
|
||||
public function meRedirect()
|
||||
{
|
||||
abort_if(!Auth::check(), 404);
|
||||
return redirect(Auth::user()->url());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue