{% import "/cards/macros/note/factory.html.twig" as NoteFactory %} {# Backwards compatibility with hAtom 0.1 #} {% if pinnednotes is not empty %}

Pinned Notes

{% for conversation in pinnednotes %} {% block current_note %} {% if conversation is instanceof('array') %} {% set args = conversation | merge({ 'type': 'vanilla_full', 'extra': { 'depth': 0 }}) %} {{ NoteFactory.constructor(args) }} {% else %} {{ noteView.note_vanilla(conversation) }} {% endif %}
{% endblock current_note %} {% endfor %}
{% endif %}