Skip to content

Commit

Permalink
Add withCurrentRevision to show talk page
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstauffer committed May 12, 2024
1 parent dc32b3e commit e9d0908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/PublicProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e9d0908

Please sign in to comment.