Changeset fcd6964 in Klonkt for src/routes/posts.js
- Timestamp:
- 07/24/2026 08:59:51 PM (7 weeks ago)
- Branches:
- main
- Children:
- c6185fa
- Parents:
- 3ffbedd
- File:
-
- 1 edited
-
src/routes/posts.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/posts.js
r3ffbedd rfcd6964 939 939 ? Guardianship.offersCollection(`${gMe}/queues/offers`, site.slug, gMe).orderedItems 940 940 : []).filter((o) => o['shaer:ward'] === gMe && o['shaer:needsMyAccept']); 941 // FEP-633c §2: who guards this account (committed). Shown so a ward can always 942 // see its guardians, not just pending offers. Derive a display @handle when the 943 // stored one is missing or is the escalation (inbox) handle rather than a @handle. 944 const guardianHandle = (uri, cached) => { 945 if (cached && cached.charAt(0) === '@') return cached; 946 try { const u = new URL(uri); return `@${u.pathname.split('/').filter(Boolean).pop()}@${u.host}`; } 947 catch { return uri; } 948 }; 949 const myGuardians = (site ? Guardianship.listGuardians(site.slug) : []) 950 .map((g) => ({ uri: g.other_uri, handle: guardianHandle(g.other_uri, g.other_handle) })); 941 951 renderPage(req, res, 'pages/messages', { 942 952 pageTitleKey: 'msg.title', bodyClass: 'on-special', items, seenAt, 943 hasMore, nextOffset: offset + FEED_PAGE, moreBase, guardianOffers, 953 hasMore, nextOffset: offset + FEED_PAGE, moreBase, guardianOffers, myGuardians, 944 954 success: req.query.success || null, error: req.query.error || null, 945 955 });
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)