{% set ctx = comment_reply_context|default(null) %}
{% for item in list %} {% set cid = item.id|default('')|lower %} {% set cpk = item.pubkey|default('') %} {% set cts = item.created_at|default(null) %} {% set cdepth = item.unfold_depth|default(0) %} {% set is_nip18_repost = item.kind is defined and (item.kind == 6 or item.kind == 16) %}
{% if not is_nip18_repost and item.unfold_reply_blurb|default('')|trim != '' %}
{% endif %}
{% if is_nip18_repost %}

Repost

{% else %} {% endif %}
{% if not is_nip18_repost and cid != '' and commentLinks[cid] is defined and commentLinks[cid]|length > 0 %} {% endif %} {% if ctx and ctx.can_publish|default(false) and item.kind|default(0) == 1111 %} {% for row in ctx.rows|default([]) %} {% if row.mode|default('') == 'comment' and row.parentId|default('') == cid %}
Reply to this note

{% endif %} {% endfor %} {% endif %}
{% endfor %}
{% if quotes is defined and quotes|length > 0 %}

Quotes and references

Other notes that cite this article in a q tag (NIP-18) or reference its address in a / A (e.g. generic reposts, highlights).

{% for item in quotes %} {% set cid = item.id|default('') %} {% set cpk = item.pubkey|default('') %} {% set cts = item.created_at|default(null) %} {% set q_repost = item.kind is defined and (item.kind == 6 or item.kind == 16) %}
{% if q_repost %}

Repost

{% else %} {% endif %}
{% if not q_repost and cid != '' and quoteLinks[cid] is defined and quoteLinks[cid]|length > 0 %} {% endif %}
{% endfor %}
{% endif %}