1
0
Fork 1
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:
Daniel Supernault 2019-08-05 00:06:56 -06:00
parent 4408e18293
commit c15cbe3fbb
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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());
}
}