<% var _seen = (typeof seen !== 'undefined' && seen) ? seen : 0; var _t = n.type === 'announce' ? 'boost' : n.type; // reply|mention|report|like|boost|follow|sent var _new = _seen && n.created_at ? (Date.parse(n.created_at) > _seen) : false; var _who = n.name || n.handle || ''; var _priv0 = (n.visibility === 'followers' || n.visibility === 'direct'); // Buckets (klonkt-demo-3jf): Messages = @mentions + private (DM) replies; // Activity = likes/boosts/follows; Moderation = reports; Sent = your // replies; Conversations = every other (public) reply. var _kind = _t === 'sent' ? 'sent' : (_t === 'like' || _t === 'boost' || _t === 'follow' || _t === 'poll_done') ? 'act' : _t === 'report' ? 'mod' : (_t === 'mention' || _priv0) ? 'msgs' : 'conv'; var _init = String(_who || '?').replace(/^@/, '').charAt(0).toUpperCase(); var _priv = (n.visibility === 'followers' || n.visibility === 'direct'); %>
  • <% if (_t === 'sent') { %> <%= t('msg.you') %> <% if (n.to_handle) { %>→ <%= n.to_handle %><% } %> <% } else { %> <%= _who %> <% if (n.handle && n.name) { %><%= n.handle %><% } %> <% } %> <% if (_new) { %><% } %> <% if (n.created_at) { %><%= formatDateTime(n.created_at) %><% } %>
    <% if (n.count && n.count > 1) { %> <%= t('msg.and_more', { n: n.count - 1 }) %> <%= _t === 'like' ? t('msg.liked_many') : t('msg.boosted_many') %> <% } else if (_t === 'follow') { %><%= t('notif.followed') %> <% } else if (_t === 'like') { %><%= t('notif.liked') %> <% } else if (_t === 'boost') { %><%= t('notif.boosted') %> <% } else if (_t === 'report') { %><%= t('notif.reported') %> <% } else if (_t === 'mention' && n.wave) { %>👋 <%= t('msg.waved_at_you') %> <% } else if (_t === 'mention') { %><%= t('notif.mentioned') %> <% } else if (_t === 'sent') { %><%= t('msg.sent_reply') %> <% } else if (_t === 'poll_done') { %><%= t('msg.poll_done') %> <% } else { %><%= t('notif.replied') %><% } %> <% if (_priv) { %>🔒 <%= t('msg.private') %><% } %> <% if (n.post_slug) { %><%= n.post_title || n.post_slug %><% } %> <% if (_t === 'mention' && n.note_url) { %><%= t('tl.view_original') %><% } %> <% if (_t === 'sent' && n.in_reply_to) { %><%= t('tl.view_original') %><% } %>
    <% if (_t === 'report' && n.content) { %>
    <%= n.content %>
    <% } else if ((_t === 'reply' || _t === 'mention' || _t === 'sent') && n.content) { %>
    <%- n.content %>
    <% if (_t === 'mention' && n.wave && n.actorUri && canMutate) { %>
    <% } %> <% } else if (_t === 'poll_done' && n.poll) { %>
    <% n.poll.options.forEach(function (o) { %>
    <%= o.name %><%= o.pct %>%
    <% }); %>
    <%= t('msg.poll_total', { n: n.poll.voters }) %>
    <% } %> <% if (_t === 'sent' && n.outboxId) { %>
    <%= t('fedi.edit') %>
    <%- include('../partials/reply-editor', { action: '/fediverse/' + n.outboxId + '/edit', placeholder: t('fedi.reply_ph'), submitLabel: t('fedi.save_edit'), rows: 2, initialHtml: n.content, initialText: n.editable, defaultLang: n.language, noAttach: true, }) %>
    <% } %>