diff --git a/app/views/discover/index.html.haml b/app/views/discover/index.html.haml index 405fb46ce..de792f8a3 100644 --- a/app/views/discover/index.html.haml +++ b/app/views/discover/index.html.haml @@ -19,7 +19,7 @@ .tab-content.mt-3 = render "discover/tab/answers", answers: @popular_answers, subscribed_answer_ids: @subscribed_answer_ids = render "discover/tab/questions", questions: @popular_questions - = render "discover/tab/discussed", comments: @most_discussed + = render "discover/tab/discussed", comments: @most_discussed, subscribed_answer_ids: @subscribed_answer_ids .col-md-5.col-sm-6 %h2= t(".people.heading") %p= t(".people.description") diff --git a/app/views/discover/tab/_discussed.html.haml b/app/views/discover/tab/_discussed.html.haml index 1a851e683..7b3b73759 100644 --- a/app/views/discover/tab/_discussed.html.haml +++ b/app/views/discover/tab/_discussed.html.haml @@ -1,3 +1,3 @@ .tab-pane.fade{ role: :tabpanel, id: "comments" } - comments.each do |a| - = render "answerbox", a: a + = render "answerbox", a:, subscribed_answer_ids: diff --git a/app/views/user/show.turbo_stream.haml b/app/views/user/show.turbo_stream.haml index ae7889ad6..d86873da7 100644 --- a/app/views/user/show.turbo_stream.haml +++ b/app/views/user/show.turbo_stream.haml @@ -1,6 +1,6 @@ = turbo_stream.append "answers" do - @answers.each do |a| - = render "answerbox", a: + = render "answerbox", a:, subscribed_answer_ids: @subscribed_answer_ids = turbo_stream.update "paginator" do - if @more_data_available