{% set existing = attributes.all()['data-controller'] ?? '' %} {% set merged = (existing ? existing ~ ' ' : '') ~ 'comments-mercure' %}
{% if loading %}
Loading comments…
{% endif %}
{% for item in list %}
{% if item.kind is defined and item.kind == '9735' %}
{% if zapAmounts[item.id] is defined %} {{ zapAmounts[item.id] }} sat {% else %} Zap {% endif %}
{% endif %}
{# Display Nostr link previews if links detected #} {% if commentLinks[item.id] is defined and commentLinks[item.id]|length > 0 %} {% endif %}
{% else %}
No comments yet.
{% endfor %}