Changeset ea211b9 in Klonkt for src/services/ActivityPubService.js
- Timestamp:
- 08/08/2026 08:42:09 PM (4 weeks ago)
- Branches:
- main
- Children:
- 29eb745
- Parents:
- 3a0ca0f
- git-author:
- Robin <roboburr@…> (08/08/2026 08:41:47 PM)
- git-committer:
- roboburr <roboburr@…> (08/08/2026 08:42:09 PM)
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
r3a0ca0f rea211b9 2500 2500 const inbox = ga && ((ga.endpoints && ga.endpoints.sharedInbox) || ga.inbox); 2501 2501 if (!inbox) return; 2502 const offer = { '@context': AP_CONTEXT, id: `${wardActor}#followoffer-${Date.now()}-${rid()}`, type: 'Offer', actor: wardActor, to: [g], object: followObj, 'shaer:followApproval': true }; 2502 const beslissend2 = Guardianship.gated.isDecisive(0, Guardianship.follows.followThreshold(guardians.length)); 2503 const offer = { '@context': AP_CONTEXT, id: `${wardActor}#followoffer-${Date.now()}-${rid()}`, type: 'Offer', actor: wardActor, to: [g], object: followObj, 'shaer:followApproval': true, 'shaer:decisive': beslissend2 }; 2503 2504 deliverWithRetry(slug, inbox, offer, `${wardActor}#main-key`, wardKeys.private_pem).catch(() => {}); 2504 2505 }).catch(() => {}); … … 5763 5764 const inbox = ga && ((ga.endpoints && ga.endpoints.sharedInbox) || ga.inbox); 5764 5765 if (!inbox) return; 5765 const offer = { '@context': AP_CONTEXT, id: `${wardActor}#outfollowoffer-${Date.now()}-${rid()}`, type: 'Offer', actor: wardActor, to: [g], object: followObj, 'shaer:followApproval': true, 'shaer:direction': 'outgoing' }; 5766 // Zou DIT antwoord het besluit afmaken (shaer-8vt)? Bij twee guardians is de 5767 // drempel 1, dus de EERSTE ja beslist -- en dat is precies wat de 5768 // beantwoorder niet kon weten. 5769 const beslissend = Guardianship.gated.isDecisive(0, Guardianship.follows.followThreshold(guardians.length)); 5770 const offer = { '@context': AP_CONTEXT, id: `${wardActor}#outfollowoffer-${Date.now()}-${rid()}`, type: 'Offer', actor: wardActor, to: [g], object: followObj, 'shaer:followApproval': true, 'shaer:direction': 'outgoing', 'shaer:decisive': beslissend }; 5766 5771 deliverWithRetry(slug, inbox, offer, `${wardActor}#main-key`, wardKeys.private_pem).catch(() => {}); 5767 5772 }).catch(() => {});
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)