<% if comment && comment.user %>
3 %> comment-deep-<%=comment.depth%>"" data-comment-id="<%= comment.id %>" data-comment-author-id="<%= comment_user_id_unless_deleted comment %>"> <% if comment.deleted %>
[deleted]
<% else %>
<%= comment.user.name %> <% if comment.user.twitter_username.present? %> <%= image_tag("twitter-logo.svg", class:"icon-img") %> <% end %> <% if comment.user.github_username.present? %> <%= image_tag("github-logo.svg", class:"icon-img") %> <% end %> <% if commentable && (commentable.user_id == comment.user_id || commentable.second_user_id == comment.user_id || commentable.third_user_id == comment.user_id) && commentable.decorate.cached_tag_list_array.include?("ama") %> ASK ME ANYTHING <% end %>
<%= comment.processed_html.html_safe %>
<% if user_signed_in? %> <% end %> <% if comment.depth < 2 || comment.is_childless? %> REPLY <% else %> THREAD <% end %>
<% end %> <% comment.children.includes(:user, :commentable).order("score DESC").each do |child| %> <%= render("comments/comment", comment:child, commentable:comment.commentable, is_view_root:false) %> <% end %>
<% end %>