Changeset c73ac64 in Klonkt for src/views/partials/fedi-node.ejs


Ignore:
Timestamp:
06/24/2026 01:58:33 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
5b47619
Parents:
ffa53cc
Message:

fix(activitypub): own replies show the site identity to everyone (not 'You')

Outbound reply nodes carry the site name/handle/avatar so visitors see e.g.
'Joost Groot @demo@...' instead of 'You'; the owner still gets the delete action.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/partials/fedi-node.ejs

    rffa53cc rc73ac64  
    11<%# Renders one fediverse thread node (n). Expects: n, t, canManageSite, _base, siteAvatar, formatDateTime %>
    22<div class="comment-avatar">
    3   <% if (n.mine) { %>
    4     <% if (typeof siteAvatar !== 'undefined' && siteAvatar) { %><img src="<%= siteAvatar %>" alt="">
    5     <% } else { %><span><%= t('fedi.you').charAt(0).toUpperCase() %></span><% } %>
    6   <% } else if (n.actor_icon) { %><img src="<%= n.actor_icon %>" alt="" loading="lazy">
     3  <% if (n.actor_icon) { %><img src="<%= n.actor_icon %>" alt="" loading="lazy">
    74  <% } else { %><span><%= (n.actor_name || '?').charAt(0).toUpperCase() %></span><% } %>
    85</div>
    96<div class="comment-body">
    107  <div class="comment-meta">
    11     <% if (n.mine) { %>
    12       <span class="comment-author"><%= t('fedi.you') %></span>
    13     <% } else { %>
    14       <a class="comment-author" href="<%= n.actor_url %>" rel="nofollow noopener" target="_blank"><%= n.actor_name %></a>
    15       <span class="fedi-handle"><%= n.actor_handle %></span>
    16     <% } %>
     8    <% if (n.actor_url) { %><a class="comment-author" href="<%= n.actor_url %>" rel="nofollow noopener" target="_blank"><%= n.actor_name %></a>
     9    <% } else { %><span class="comment-author"><%= n.actor_name %></span><% } %>
     10    <% if (n.actor_handle) { %><span class="fedi-handle"><%= n.actor_handle %></span><% } %>
    1711    <% if (n.created_at) { %><span class="comment-time"><%= formatDateTime(n.created_at) %></span><% } %>
    1812  </div>
Note: See TracChangeset for help on using the changeset viewer.