diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb index f57876030..df065a3f9 100644 --- a/app/views/comments/_comment.html.erb +++ b/app/views/comments/_comment.html.erb @@ -2,6 +2,7 @@ <% valuation = local_assigns.fetch(:valuation, false) %> <% allow_votes = local_assigns.fetch(:allow_votes, true) %> <% allow_flagging = local_assigns.fetch(:allow_flagging, true) %> +<% allow_comments = local_assigns.fetch(:allow_comments, true) %> <% cache [locale_and_user_status(comment), comment, commentable_cache_key(comment.commentable), comment.author, (comment_flags[comment.id] if comment_flags)] do %>
@@ -26,7 +28,8 @@ <% @comment_tree.root_comments.each do |comment| %> <%= render 'comments/comment', { comment: comment, - valuation: local_assigns.fetch(:valuation, false) } %> + valuation: valuation, + allow_comments: allow_comments } %> <% end %> <%= paginate @comment_tree.root_comments %>