From e9d090872178b918655675c6a28825a80067fa2f Mon Sep 17 00:00:00 2001 From: Matt Stauffer Date: Sat, 11 May 2024 23:42:03 -0400 Subject: [PATCH] Add withCurrentRevision to show talk page --- app/Http/Controllers/PublicProfileController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/PublicProfileController.php b/app/Http/Controllers/PublicProfileController.php index dfed21f4..bfc29348 100644 --- a/app/Http/Controllers/PublicProfileController.php +++ b/app/Http/Controllers/PublicProfileController.php @@ -42,7 +42,7 @@ public function showTalk($profile_slug, $talk_id) { $user = $this->getPublicUserByProfileSlug($profile_slug); - $talk = $user->talks()->public()->findOrFail($talk_id); + $talk = $user->talks()->withCurrentRevision()->public()->findOrFail($talk_id); return view('talks.show-public', [ 'user' => $user,