diff --git a/app/views/comments/_index_by_comment.html.erb b/app/views/comments/_index_by_comment.html.erb index b72e760dc..13da58138 100644 --- a/app/views/comments/_index_by_comment.html.erb +++ b/app/views/comments/_index_by_comment.html.erb @@ -1,7 +1,7 @@
<% @comments.each do |comment| %> - <% if CurrentUser.is_moderator? || !comment.is_deleted? %> + <% if CurrentUser.is_moderator? || (params[:search] && params[:search][:is_deleted] =~ /t/) || !comment.is_deleted? %>
>
<% if comment.post.visible? %>