From 3c35158ebc92cbcc114315683ec552091b89f97e Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 25 Jan 2022 02:18:50 -0700 Subject: [PATCH] Update InternalApiController, redirect remote post and profiles to Metro 2.0 --- app/Http/Controllers/InternalApiController.php | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/app/Http/Controllers/InternalApiController.php b/app/Http/Controllers/InternalApiController.php index 059e5124f..906dde547 100644 --- a/app/Http/Controllers/InternalApiController.php +++ b/app/Http/Controllers/InternalApiController.php @@ -410,26 +410,12 @@ class InternalApiController extends Controller public function remoteProfile(Request $request, $id) { - $profile = Profile::whereNull('status') - ->whereNotNull('domain') - ->findOrFail($id); - $user = Auth::user(); - - return view('profile.remote', compact('profile', 'user')); + return redirect('/i/web/profile/' . $id); } public function remoteStatus(Request $request, $profileId, $statusId) { - $user = Profile::whereNull('status') - ->whereNotNull('domain') - ->findOrFail($profileId); - - $status = Status::whereProfileId($user->id) - ->whereNull('reblog_of_id') - ->whereIn('visibility', ['public', 'unlisted']) - ->findOrFail($statusId); - $template = $status->in_reply_to_id ? 'status.reply' : 'status.remote'; - return view($template, compact('user', 'status')); + return redirect('/i/web/post/' . $statusId); } public function requestEmailVerification(Request $request)