Handle Missing Root Comment in Deleted Comment View (#5716)

This commit is contained in:
Molly Struve 2020-01-27 08:44:00 -05:00 committed by GitHub
parent d81f407394
commit ebf43209a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@
<h3>Comment from a deleted article or podcast</h3>
<div class="single-comment-node root">
<% @user ||= @root_comment.user %>
<% if @root_comment.deleted %>
<% if @root_comment.blank? || @root_comment.deleted %>
<div class="inner-comment">
<div class="body">
[deleted]