Merge pull request #1205 from Retrospring/fix/pass-subscribed-answers-on-create

Pass subscribed answer IDs on answer create
This commit is contained in:
Karina Kwiatek 2023-05-09 09:31:20 +02:00 committed by GitHub
commit 603a454efd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
@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
def destroy