diff --git a/app/views/articles/_comment_tree.html.erb b/app/views/articles/_comment_tree.html.erb index e46f155c7..07f30ccb2 100644 --- a/app/views/articles/_comment_tree.html.erb +++ b/app/views/articles/_comment_tree.html.erb @@ -1,2 +1,4 @@ <% comment, sub_comments = comment_node %> -<%= nested_comments(tree: { comment => sub_comments }, commentable: @article, is_view_root: true) %> +<% unless comment.decorate.low_quality && sub_comments.empty? %> + <%= nested_comments(tree: { comment => sub_comments }, commentable: @article, is_view_root: true) %> +<% end %> diff --git a/app/views/comments/_comment_proper.html.erb b/app/views/comments/_comment_proper.html.erb index c621d8258..b19eb4fc1 100644 --- a/app/views/comments/_comment_proper.html.erb +++ b/app/views/comments/_comment_proper.html.erb @@ -5,7 +5,7 @@
- <%= t("views.comments.parent.subtitle_html", - start: tag("span", { class: %w[fw-normal color-base-60] }, true), - end: "
+ <%= t("views.comments.parent.subtitle_html", + start: tag("span", { class: %w[fw-normal color-base-60] }, true), + end: "".html_safe, + title: tag.span(@commentable.title)) %> +
+