We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7851d0f commit 409b762Copy full SHA for 409b762
1 file changed
app/controllers/comments_controller.rb
@@ -108,7 +108,8 @@ def update
108
apply_pings(after_pings - before_pings - @comment_thread.thread_follower.to_a)
109
110
render json: { status: 'success',
111
- comment: render_to_string(partial: 'comments/comment', locals: { comment: @comment }) }
+ comment: render_to_string(partial: 'comments/comment',
112
+ locals: { comment: @comment, pingable: after_pings }) }
113
else
114
render json: { status: 'failed',
115
message: "Comment failed to save (#{@comment.errors.full_messages.join(', ')})" },
0 commit comments