<%# Rich replies: media on our own sent replies (attachments on the Note).
Visitors see these too, and the reply editor (owner-only) may not render,
so make sure the stylesheet is on the page either way. %>
<% if (n.media && n.media.length) { %>
<% if (!locals.__reAssets) { locals.__reAssets = 1; %><% } %>
<% if (n.mine && typeof canManageSite !== 'undefined' && canManageSite && n.outboxId) { %>
<% } else if (!n.mine && typeof canManageSite !== 'undefined' && canManageSite && n.id && typeof postSlug !== 'undefined' && postSlug) { %>
<%# Owner: like / boost / reply directly AS the site — no "your server" detour (it's your own site). %>
<% if (locals.mayReply !== false) { %>
<%- include('reply-editor', {
action: _base + '/posts/' + postSlug + '/fedi-reply',
hiddenFields: [{ name: 'interaction_id', value: n.id }],
placeholder: t('fedi.reply_ph'),
submitLabel: t('fedi.send'),
rows: 2,
participants: n.participants || [],
}) %>
<% } %>
<%# Owner moderation: report to their instance + remove (tombstoned: never comes back via re-delivery or thread-crawl). %>
<% } else if (n.noteId) { %>
<%# Visitor: reply via YOUR OWN instance. Also on the site's own (mine) comments —
those are dereferenceable Notes (/ap/notes/) too; without this a visitor
could not reply to the owner's comments at all (only the owner branches above
catch mine-nodes for managers, so this else-if never renders for the owner). %>
<% } %>
<% if (n.children && n.children.length) { %>
<% n.children.forEach(function(c){ %>