{% 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 item.kind is defined and item.kind == 1 %}
kind 1
{% elseif item.kind is defined and item.kind == 1111 %}
1111
{% elseif is_nip18_repost %}
repost
{% endif %}
{% if cpk != '' %}{% else %}Unknown{% endif %}
{% if cts is not null and cts != '' %}{{ cts|date('F j Y') }}{% endif %}
{% set _ev_share = nostr_event_share(item) %}
{% if _ev_share %}{% include 'components/Molecules/NostrShareMenu.html.twig' with { share: _ev_share, event_menu: true } only %}{% endif %}
{% 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 %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% if quotes is defined and quotes|length > 0 %}
Quotes and references
{% 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 cts is not null and cts != '' %}{{ cts|date('F j Y') }}{% endif %}
{% set _qv_share = nostr_event_share(item) %}
{% if _qv_share %}{% include 'components/Molecules/NostrShareMenu.html.twig' with { share: _qv_share, event_menu: true } only %}{% endif %}
{% if q_repost %}
Repost
{% else %}
{% endif %}
{% if not q_repost and cid != '' and quoteLinks[cid] is defined and quoteLinks[cid]|length > 0 %}
{% endif %}
{% if item.kind is defined and item.kind == 1 %} kind 1 {% elseif item.kind is defined and item.kind == 1111 %} 1111 {% elseif is_nip18_repost %} repost {% endif %} {% if cpk != '' %} {% else %}Unknown{% endif %}
Repost
{% else %}