Changeset a885afc in Klonkt


Ignore:
Timestamp:
06/24/2026 01:27:56 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
7c44c12
Parents:
7d932ce
Message:

fix(activitypub): pass locals explicitly into fedi-node include (500 fix)

EJS does not auto-share parent locals with a nested include, so the recursive
fedi-node include lost _base/t/etc. Pass them explicitly in both includes.

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

Location:
src/views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/post.ejs

    r7d932ce ra885afc  
    8484        <ol class="comments-list">
    8585          <% fediverse.thread.forEach(function(n){ %>
    86             <li class="comment"><%- include('../partials/fedi-node', { n: n }) %></li>
     86            <li class="comment"><%- include('../partials/fedi-node', { n: n, t: t, canManageSite: (typeof canManageSite !== 'undefined' ? canManageSite : false), _base: _base, siteAvatar: (typeof siteAvatar !== 'undefined' ? siteAvatar : null), formatDateTime: formatDateTime }) %></li>
    8787          <% }); %>
    8888        </ol>
  • src/views/partials/fedi-node.ejs

    r7d932ce ra885afc  
    3333    <ol class="comment-replies">
    3434      <% n.children.forEach(function(c){ %>
    35         <li class="comment comment-reply"><%- include('../partials/fedi-node', { n: c }) %></li>
     35        <li class="comment comment-reply"><%- include('../partials/fedi-node', { n: c, t: t, canManageSite: (typeof canManageSite !== 'undefined' ? canManageSite : false), _base: _base, siteAvatar: (typeof siteAvatar !== 'undefined' ? siteAvatar : null), formatDateTime: formatDateTime }) %></li>
    3636      <% }); %>
    3737    </ol>
Note: See TracChangeset for help on using the changeset viewer.