Changeset 0202104 in Klonkt for src/routes/posts.js
- Timestamp:
- 07/28/2026 11:40:37 PM (6 weeks ago)
- Branches:
- main
- Children:
- 439f095
- Parents:
- 6eab7e9
- File:
-
- 1 edited
-
src/routes/posts.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/posts.js
r6eab7e9 r0202104 947 947 catch { return uri; } 948 948 }; 949 // With their availability (FEP-633c 3.6.1): the ward always sees the real 950 // size of its safety net, not just the names. Owner-only by construction: 951 // this page is the owner's. 952 const gStatus = site ? Object.fromEntries( 953 Guardianship.availability.statusesFor(site.slug, Guardianship.listGuardians(site.slug).map((g) => g.other_uri), Date.now()) 954 .map((s) => [s.id, s]), 955 ) : {}; 949 956 const myGuardians = (site ? Guardianship.listGuardians(site.slug) : []) 950 .map((g) => ({ uri: g.other_uri, handle: guardianHandle(g.other_uri, g.other_handle) })); 957 .map((g) => ({ 958 uri: g.other_uri, 959 handle: guardianHandle(g.other_uri, g.other_handle), 960 availability: (gStatus[g.other_uri] || {})['shaer:availability'] || 'active', 961 awayUntil: (gStatus[g.other_uri] || {})['shaer:awayUntil'] || null, 962 })); 951 963 renderPage(req, res, 'pages/messages', { 952 964 pageTitleKey: 'msg.title', bodyClass: 'on-special', items, seenAt,
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)