From d7e1ef8de09a2c2a697af2734ce00f6883d82233 Mon Sep 17 00:00:00 2001 From: Peter Bhat Harkins Date: Fri, 15 Mar 2024 14:03:34 -0500 Subject: [PATCH] 1 + n --- app/controllers/stories_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/stories_controller.rb b/app/controllers/stories_controller.rb index f5b72e94d..9d90e7fe6 100644 --- a/app/controllers/stories_controller.rb +++ b/app/controllers/stories_controller.rb @@ -201,6 +201,7 @@ def show render action: "show" } format.json { + @comments = @comments.includes(:parent_comments) render json: @story.as_json(with_comments: @comments) } end