Pass subscribed answer IDs on answer create

This commit is contained in:
Karina Kwiatek 2023-05-08 21:45:31 +02:00
parent 43b14323f3
commit 63372cdeac
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class Ajax::AnswerController < AjaxController
# this assign is needed because shared/_answerbox relies on it, I think # this assign is needed because shared/_answerbox relies on it, I think
@question = 1 @question = 1
@response[:render] = render_to_string(partial: "answerbox", locals: { a: answer, show_question: false }) @response[:render] = render_to_string(partial: "answerbox", locals: { a: answer, show_question: false, subscribed_answer_ids: [answer.id] })
end end
def destroy def destroy