Skip to content

Commit 409b762

Browse files
committed
fixed updating a comment temporarily showing pings as 'unpingable'
1 parent 7851d0f commit 409b762

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/controllers/comments_controller.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ def update
108108
apply_pings(after_pings - before_pings - @comment_thread.thread_follower.to_a)
109109

110110
render json: { status: 'success',
111-
comment: render_to_string(partial: 'comments/comment', locals: { comment: @comment }) }
111+
comment: render_to_string(partial: 'comments/comment',
112+
locals: { comment: @comment, pingable: after_pings }) }
112113
else
113114
render json: { status: 'failed',
114115
message: "Comment failed to save (#{@comment.errors.full_messages.join(', ')})" },

0 commit comments

Comments
 (0)