{# Message card partial — inbound/outbound DM display #}
{# Dismiss button #}
{# Avatar — outbound: our profile photo, inbound: sender's photo #}
{% if item.direction == "outbound" and myProfile and myProfile.icon %} {{ myProfile.name or 'Me' }} {% else %} {% if item.actorPhoto %} {{ item.actorName }} {% endif %} {% endif %} {% if item.direction == "outbound" %}↗{% else %}✉{% endif %}
{# Message body #}
{% if item.direction == "outbound" %} {{ __("activitypub.messages.sentTo") }} {% endif %} {{ item.actorName }} {% if item.actorHandle %} {{ item.actorHandle }} {% endif %} {% if item.content and item.content.html %}
{{ item.content.html | safe }}
{% elif item.content and item.content.text %}
{{ item.content.text }}
{% endif %} {# Reply action (only for inbound messages) #} {% if item.direction == "inbound" %} {% endif %}
{# Timestamp #} {% if item.published %} {% endif %}