Changeset 3d882bd in Klonkt for src/services/guardianship/handshake.js
- Timestamp:
- 08/04/2026 12:30:11 PM (5 weeks ago)
- Branches:
- main
- Children:
- fa33214
- Parents:
- 30d0e2c
- File:
-
- 1 edited
-
src/services/guardianship/handshake.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/services/guardianship/handshake.js
r30d0e2c r3d882bd 16 16 * arrive once via wireHandshake(deps); nothing here imports ActivityPubService. 17 17 */ 18 import { isGuardianRelationship, GUARDIAN_RELATIONSHIP_COMPACT } from './context.js';18 import { isGuardianRelationship, GUARDIAN_RELATIONSHIP_COMPACT, carriesGuardians } from './context.js'; 19 19 import * as offers from './offers.js'; 20 20 import * as relations from './relations.js'; … … 139 139 const doc = await deps.fetchActor(candidateUri).catch(() => null); 140 140 if (!doc) return 'unverified'; 141 const g = doc['shaer:guardians']; 142 const has = Array.isArray(g) ? g.length > 0 143 : typeof g === 'string' ? g.length > 0 144 : (g && typeof g === 'object') ? (Array.isArray(g.items) ? g.items.length > 0 : true) 145 : false; 146 return has ? 'malformed' : 'ok'; 141 return carriesGuardians(doc) ? 'malformed' : 'ok'; 147 142 } 148 143
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)