Changeset 709dc6f in Klonkt for src/services/ActivityPubService.js
- Timestamp:
- 08/09/2026 04:59:31 PM (4 weeks ago)
- Branches:
- main
- Children:
- 89d3c06
- Parents:
- e62eee4
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
re62eee4 r709dc6f 5476 5476 const guardians = Guardianship.listGuardians(slug).map((g) => g.other_uri); 5477 5477 if (!guardians.length) return null; // not a ward: nothing to gate 5478 // shaer:following (shaer-p729) — its own gate, apart from shaer:follows, 5479 // which governs the OTHER direction. §5.3 fixes the inbound one on: a Follow 5480 // aimed at a ward MUST pass the guardians. About this direction the FEP says 5481 // nothing, so it is ours to set and ours to let go of, and the guardians can 5482 // relax it for a child who has grown into it. Undecided means gated for a 5483 // ward, the same automatiek as the rest of the family. 5484 const gateRow = db.prepare('SELECT gate_following FROM sites WHERE slug = ?').get(slug); 5485 if (Guardianship.wardGateAllowed(gateRow && gateRow.gate_following, true)) return null; 5478 5486 if (guardians.includes(targetUri)) return null; // your own guardian 5479 5487 if (Guardianship.outgoing.isMutual(slug, targetUri)) return null; // already vetted by name
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)