Changeset abbb72a in Klonkt
- Timestamp:
- 08/11/2026 04:20:01 PM (4 weeks ago)
- Branches:
- main
- Children:
- 26b1848
- Parents:
- 8b83cba
- Files:
-
- 1 added
- 3 edited
-
src/routes/guardian.js (modified) (1 diff)
-
src/services/guardianship/handshake.js (modified) (2 diffs)
-
src/services/guardianship/index.js (modified) (1 diff)
-
test/help-mark-coguardians.test.js (added)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/guardian.js
r8b83cba rabbb72a 433 433 Guardianship.help.record(noteUri, me, kind, null); 434 434 435 const anderen = Guardianship.listGuardians(wardUri.replace(/.*\/ap\/users\//, '')) || []; 436 const ontvangers = [wardUri, ...anderen.map((g) => g.other_uri)].filter((u) => u && u !== me); 435 // DE MEDE-GUARDIANS, en dit ging mis (shaer-lgo, gevonden 11-8 met @mee). 436 // 437 // Hier stond listGuardians(wardUri.replace(/.*\/ap\/users\//, '')): de staart 438 // van de URI als slug. listGuardians kent alleen relaties van LOKALE sites, 439 // dus voor een ward elders leverde dat altijd een lege lijst -- en juist die 440 // ward is het hele punt, want een ward op je eigen instance heeft geen 441 // federatie nodig. De markering ging dus alleen naar het kind en nooit naar 442 // de andere guardian. Precies de faalstand waar deze bead voor bestaat: 443 // iedereen denkt dat de ander het oppakt. 444 // 445 // Erger nog: had er toevallig een lokale site met die naam bestaan, dan 446 // waren het DIENS guardians geweest. 447 // 448 // existingGuardiansOf kende de goede weg al -- lokaal opzoeken, en anders 449 // shaer:guardians uit de actor van de ward. Die stond alleen niet aan deze 450 // route vast. 451 const anderen = await Guardianship.existingGuardiansOf(wardUri).catch(() => []); 452 const ontvangers = [wardUri, ...anderen].filter((u) => u && u !== me); 437 453 const r = await AP.deliverDirectNote(site, { 438 454 recipients: ontvangers, -
src/services/guardianship/handshake.js
r8b83cba rabbb72a 87 87 } 88 88 89 /** The existing guardians of a ward: local list, or the remote actor's shaer:guardians. */ 90 async function existingGuardiansOf(wardUri) { 89 /** 90 * The existing guardians of a ward: local list, or the remote actor's 91 * shaer:guardians. 92 * 93 * Geexporteerd sinds shaer-lgo: de markeerroute had zijn EIGEN afleiding, en 94 * die was fout voor precies het geval dat telt (zie routes/guardian.js). 95 */ 96 export async function existingGuardiansOf(wardUri) { 91 97 const local = deps.localSlug(wardUri); 92 98 if (local) return relations.listGuardians(local).map((r) => r.other_uri); … … 627 633 } 628 634 629 export default { wireHandshake, handleOutbox, handleInbox, parseRelationship, parseUndoRelationship, endGuardianship, retryDeferred };635 export default { wireHandshake, handleOutbox, handleInbox, parseRelationship, parseUndoRelationship, endGuardianship, retryDeferred, existingGuardiansOf }; -
src/services/guardianship/index.js
r8b83cba rabbb72a 18 18 export { helpRequestProps, isHelpRequest, waveProps, isWave, awayProps, hasGuardiansProps, objectHasGuardians, externalEmbedsAllowed, externalPlaybackAllowed, wardGateAllowed } from './notes.js'; 19 19 export { wireDelivery, c2sVisibility, deliverDirectNote } from './delivery.js'; 20 export { wireHandshake, handleOutbox as handleGuardianshipOutbox, handleInbox as handleGuardianshipInbox, parseRelationship, parseUndoRelationship, endGuardianship } from './handshake.js';20 export { wireHandshake, handleOutbox as handleGuardianshipOutbox, handleInbox as handleGuardianshipInbox, parseRelationship, parseUndoRelationship, endGuardianship, existingGuardiansOf } from './handshake.js'; 21 21 export { offersCollection, followsCollection, outgoingFollowsCollection, logCollection, wardsCollection, guardiansCollection, helpCollection } from './queues.js'; 22 22 export * as availability from './availability.js';
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)