Ignore:
Timestamp:
06/24/2026 12:52:51 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
7f46112b
Parents:
594cc50
Message:

feat(activitypub): full post on reply page + strip audio shortcodes from federation

buildNote strips album|playlist shortcodes (they federated raw).
resolveRemoteNote returns the full sanitized content + image attachments; the
authorize_interaction compose page shows the whole post + images + a 'view full
post + comments on the source' link.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/authorize-interaction.ejs

    r594cc50 r2826bb97  
    1414      <span class="fedi-handle"><%= target.actor_handle %></span>
    1515    </p>
    16     <% if (target.preview) { %>
    17       <blockquote class="auth-interact-preview"><%= target.preview %></blockquote>
    18     <% } %>
     16    <blockquote class="auth-interact-preview">
     17      <% if (target.content) { %><div class="auth-interact-content"><%- target.content %></div>
     18      <% } else if (target.preview) { %><%= target.preview %><% } %>
     19      <% (target.images || []).forEach(function(im){ %>
     20        <img class="auth-interact-img" src="<%= im %>" alt="" loading="lazy">
     21      <% }); %>
     22      <% if (target.url || uri) { %>
     23        <p class="auth-interact-orig"><a href="<%= target.url || uri %>" target="_blank" rel="nofollow noopener"><%= t('fedi.remote_view_original') %></a></p>
     24      <% } %>
     25    </blockquote>
    1926    <form method="post" action="/authorize_interaction" class="auth-interact-form">
    2027      <input type="hidden" name="uri" value="<%= uri %>">
     
    4653  .auth-interact-actions { display: flex; gap: .5rem; align-items: center; }
    4754  .auth-interact-note { color: var(--ink-soft, #999); font-size: .85rem; margin-top: 1rem; }
     55  .auth-interact-content { line-height: 1.55; }
     56  .auth-interact-content p { margin: .35rem 0; }
     57  .auth-interact-content p:first-child { margin-top: 0; }
     58  .auth-interact-img { max-width: 100%; height: auto; border-radius: 10px; margin: .5rem 0 0; display: block; }
     59  .auth-interact-orig { margin: .75rem 0 0; font-size: .85rem; }
     60  .auth-interact-orig a { color: var(--accent, #06c); }
    4861</style>
Note: See TracChangeset for help on using the changeset viewer.