Changeset f1c50f9 in Klonkt for src/services/ActivityPubService.js
- Timestamp:
- 07/25/2026 10:37:37 AM (7 weeks ago)
- Branches:
- main
- Children:
- 97bacf2
- Parents:
- 787e0d9
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
r787e0d9 rf1c50f9 1405 1405 // FEP-633c §5.3, modelled on the guardian offer: the ward forwards the 1406 1406 // gated follow to its guardians for approval. A LOCAL guardian gets a 1407 // push and reads /guardian 2directly; a REMOTE guardian gets an1407 // push and reads /guardian directly; a REMOTE guardian gets an 1408 1408 // Offer(Follow) delivered so its instance stores a copy (same distributed 1409 1409 // pattern as the adoption offer). On quorum the ward returns Accept(Follow). … … 1419 1419 if (isLocal) { 1420 1420 const L = pushLang(gslug); 1421 pushEvent(gslug, { type: 'guardian', title: i18nT(L, 'push.n_guard_cog_t'), body: i18nT(L, 'push.n_guard_cog_b', { who: fi.name || fi.handle || i18nT(L, 'notif.someone') }), url: `${pushPrefix(gslug)}/guardian 2` });1421 pushEvent(gslug, { type: 'guardian', title: i18nT(L, 'push.n_guard_cog_t'), body: i18nT(L, 'push.n_guard_cog_b', { who: fi.name || fi.handle || i18nT(L, 'notif.someone') }), url: `${pushPrefix(gslug)}/guardian` }); 1422 1422 } else { 1423 1423 fetchActor(g).then((ga) => { … … 3009 3009 Guardianship.follows.recordReview(gslug, { id: followId, wardUri, wardInbox: wardDoc && wardDoc.inbox, follower, followerHandle: fai.handle, followerIcon: fai.icon, followJson: JSON.stringify(fo) }); 3010 3010 const L = pushLang(gslug); 3011 pushEvent(gslug, { type: 'guardian', title: i18nT(L, 'push.n_guard_cog_t'), body: i18nT(L, 'push.n_guard_cog_b', { who: fai.name || fai.handle || i18nT(L, 'notif.someone') }), url: `${pushPrefix(gslug)}/guardian 2` });3011 pushEvent(gslug, { type: 'guardian', title: i18nT(L, 'push.n_guard_cog_t'), body: i18nT(L, 'push.n_guard_cog_b', { who: fai.name || fai.handle || i18nT(L, 'notif.someone') }), url: `${pushPrefix(gslug)}/guardian` }); 3012 3012 stored = true; 3013 3013 } … … 3032 3032 } 3033 3033 3034 // Leg 3: a guardian in /guardian 2decides on a forwarded follow; send the3034 // Leg 3: a guardian in /guardian decides on a forwarded follow; send the 3035 3035 // Accept/Reject back to the ward's inbox (signed by the guardian). 3036 3036 export async function sendFollowDecision(guardianSite, review, decision) {
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)