{% if not ajax %} {% if comment_info and not request.full_path.endswith('#context') %} {% endif %} {% include 'usernote.html' %} {% endif %} {# "level" represents the nested level in this call; always starts at 1 #} {# this is distinct from "comment.level", which is the global depth of this comment #} {% macro single_comment(c, level) %} {% if c.should_hide_score %} {% set ups="" %} {% set downs="" %} {% set score="" %} {% else %} {% set ups=c.upvotes %} {% set downs=c.downvotes %} {% set score=c.score %} {% endif %} {% if v and (v.shadowbanned or v.admin_level > 1) %} {% set replies=c.replies_ignoring_shadowbans %} {% else %} {% set replies=c.replies(v) %} {% endif %} {% if (c.is_banned or c.deleted_utc or c.is_blocking) and not (v and v.admin_level > 1) and not (v and v.id==c.author_id) %}
{% if standalone and c.over_18 %}+18 {% endif %} {% if c.is_banned %}removed by @{{c.ban_reason}}{% elif c.deleted_utc %}Deleted by author{% elif c.is_blocking %}You are blocking @{{c.author_name}}{% endif %}
{% if render_replies %} {% if level<9 %}
{% set standalone=False %} {% for reply in replies %} {{single_comment(reply, level=level+1)}} {% endfor %}
{% elif replies and "notifications" in request.path %}
{% set standalone=False %} {% for reply in replies %} {{single_comment(reply, level=level+1)}} {% endfor %}
{% elif replies %}
More comments
{% endif %} {% endif %}
{% else %} {% if v %} {% set voted=c.voted %} {% if not voted and v.id == c.author_id %} {% set voted=1 %} {% endif %} {% else %} {% set voted=-2 %} {% endif %} {% if standalone and level==1 %}
{% if c.post and c.post.over_18 %}+18{% endif %} {% if c.post %} {% if c.author_id==v.id and replies and is_notification_page%} Comment {{'Replies' if (replies | length)>1 else 'Reply'}}: {{c.post.realtitle(v) | safe}} {% elif c.post.author_id==v.id and c.level == 1 and is_notification_page%} Post Reply: {{c.post.realtitle(v) | safe}} {% elif is_notification_page and c.parent_submission in v.subscribed_idlist() %} Subscribed Thread: {{c.post.realtitle(v) | safe}} {% elif is_notification_page %} Username Mention: {{c.post.realtitle(v) | safe}} {% else %} {{c.post.realtitle(v) | safe}} {% endif %} {% if c.post.sub %} in /h/{{c.post.sub}} {% endif %} {% elif c.author_id==NOTIFICATIONS_ID or c.author_id==AUTOJANNY_ID %} Notification {% else %} {% if c.sentto == 2 %} Sent to admins {% else %} Sent to @{{c.senttouser.username}} {% endif %} {% endif %}
{% endif %} {% if c.parent_comment and c.parent_comment.sentto %} {% set isreply = True %} {% else %} {% set isreply = False %} {% endif %}
{% if not isreply %}
{% endif %}
{% if c.ghost %} 👻 {% else %} {% if c.author.verified %} {% endif %} {% if not c.author %} {{c.print()}} {% endif %} {{c.author_name}} {% if v and v.admin_level > 1 %} _U_ {% endif %} {% if c.author.customtitle %}  {{c.author.customtitle | safe}}{% endif %} {% endif %} {% for a in c.awards|reverse %} {% endfor %} {% if c.post %} {% set sub = c.post.sub %} {% if sub and c.author.exiled_from(sub) %} {% endif %} {% endif %} {% if c.bannedfor %} {% endif %} {% if v and c.filter_state == 'reported' and v.can_manage_reports() %}{{c.active_flags(v)}} Reports{% endif %} {% if c.over_18 %}+18{% endif %} {% if v and v.admin_level > 1 and c.author.shadowbanned %}{% endif %} {% if c.is_pinned %} {% endif %} {% if c.distinguish_level and not c.ghost %}{% endif %} {% if c.is_op %}{% endif %} {% if c.is_bot %}{% endif %} {% if c.is_blocking %}{% endif %} {% if c.is_blocked %}{% endif %} {% if c.parent_comment_id and not standalone and level != 1 %}{{c.parent_comment.author_name}}{% endif %} {% if c.notif_utc %}  {{c.age_string}} {% elif c.created_utc %}  {{c.age_string}} {% endif %} {% if c.edited_utc %} · Edited {{c.edited_string}} {% endif %}
{% if v and c.filter_state == 'reported' and v.can_manage_reports() %}
Reports: Approve Approve and Ignore Remove

				
    {% for f in c.flags(v) %}
  • {{f.user.username}}{% if f.reason %}: {{f.realreason(v) | safe}}{% endif %}
  • {% endfor %}
{% endif %} {% if c.is_banned and c.ban_reason %}
removed by @{{c.ban_reason}}
{% endif %} {% if c.award_count("tilt") %} {% endif %}
{{c.realbody(v) | safe}}
{% if c.parent_submission %} {% if v and v.id==c.author_id %} {% endif %}
  • {% if v and v.admin_level > 1 %} {% endif %}
  • {% if v %} {% endif %}
  • {% if v and request.path.startswith('/@') and v.admin_level < 2 %}
  • {% if voted==1 %} {% endif %} {{score}} {% if voted==-1 %} {% endif %}
  • {% elif v %}
  • {{score}}
  • {% else %}
  • {{score}}
  • {% endif %}
  • {% if v and request.path.startswith('/@') and v.admin_level < 2%} {% if voted==1 %} {% endif %} {% elif v %} {% else %} {% endif %} {% if v and request.path.startswith('/@') and v.admin_level < 2 %} {% if voted==-1 %}
  • {% endif %} {% elif v %} {% else %} {% endif %} {% if v and v.admin_level >= 2 %}Votes{% endif %} Context {% if v %} {% endif %} {% if c.parent_submission %} {% if v and c.author_id == v.id %} {% elif v and c.body %} {% endif %} {% endif %} {% if v and v.admin_level > 1 and c.filter_state == 'filtered' %} {% endif %} {% if v %} {% endif %}
{% endif %}
{% if v and v.id != c.author_id and c.body %} {% endif %}
{% if render_replies %} {% if level<9 or request.path == '/notifications' %}
{% for reply in replies %} {{single_comment(reply, level=level+1)}} {% endfor %}
{% elif replies %}
More comments
{% endif %} {% if request.path == '/notifications' and c.level == 1 and c.sentto and not c.parent_submission and c.author_id not in (NOTIFICATIONS_ID, AUTOJANNY_ID) %} Reply
{% endif %} {% else %}
{% endif %}
{% if v and v.admin_level > 1 %} {% endif %}
{% endif %} {% endmacro %} {% for comment in comments %} {% if parent_level %} {% set parent_level = parent_level | int %} {% else %} {% set parent_level = 0 %} {% endif %} {{ single_comment(comment, level = parent_level + 1) }} {% endfor %} {% if offset %} {% if p %} {% set pid = p.id %} {% endif %}

{% endif %} {% if not ajax %} {% if v %} {% include "gif_modal.html" %} {% if v.admin_level > 1 %} {% include "ban_modal.html" %} {% endif %} {% endif %} {% if v %} {% endif %} {% if v and v.admin_level > 1 %} {% if v.admin_level > 1 %} {% endif %} {% endif %} {% include "expanded_image_modal.html" %} {% endif %}