mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 01:05:36 +00:00
Update StatusController, redirect status view for authed users to Metro 2.0 UI
This commit is contained in:
parent
c9e609a74b
commit
71dff472cc
1 changed files with 8 additions and 0 deletions
|
@ -31,6 +31,14 @@ class StatusController extends Controller
|
|||
{
|
||||
public function show(Request $request, $username, $id)
|
||||
{
|
||||
// redirect authed users to Metro 2.0
|
||||
if($request->user()) {
|
||||
// unless they force static view
|
||||
if(!$request->has('fs') || $request->input('fs') != '1') {
|
||||
return redirect('/i/web/post/' . $id);
|
||||
}
|
||||
}
|
||||
|
||||
$user = Profile::whereNull('domain')->whereUsername($username)->firstOrFail();
|
||||
|
||||
if($user->status != null) {
|
||||
|
|
Loading…
Reference in a new issue