Changeset fa33214 in Klonkt for src/routes/activitypub.js
- Timestamp:
- 08/04/2026 12:55:55 PM (5 weeks ago)
- Branches:
- main
- Children:
- 04aca12, 12bed59
- Parents:
- 3d882bd
- File:
-
- 1 edited
-
src/routes/activitypub.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/activitypub.js
r3d882bd rfa33214 254 254 queueRoute('offers', (id, slug, me) => Guardianship.offersCollection(id, slug, me)); 255 255 queueRoute('follows', (id) => Guardianship.followsCollection(id)); 256 // §5.3 turned around (shaer-p729): what this ward has asked to follow, still 257 // waiting on its guardians. Owner-only like the rest — who a child wants to 258 // follow is nobody else's business. 259 queueRoute('outgoing-follows', (id, slug, me) => Guardianship.outgoingFollowsCollection(id, slug, me)); 256 260 queueRoute('wards', (id, slug) => Guardianship.wardsCollection(id, slug)); 257 261 // Availability (FEP-633c 3.6.1) is never public: the ward reads its … … 696 700 // 201 Created → Location header (AP spec); 202 Accepted for side-effect verbs. 697 701 if (out.status === 201 && out.url) res.set('Location', out.url); 698 return res.status(out.status || 202).json({ ok: true, id: out.id, url: out.url }); 702 // `state` carries a third outcome the app must be able to tell apart from a 703 // plain success: a ward's follow held for its guardians (§5.3, shaer-p729). 704 return res.status(out.status || 202).json({ ok: true, id: out.id, url: out.url, ...(out.state ? { state: out.state } : {}) }); 699 705 }); 700 706
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)