Changeset 86e6a45 in Klonkt for src/services/ActivityPubService.js
- Timestamp:
- 08/08/2026 07:24:44 AM (5 weeks ago)
- Branches:
- main
- Children:
- a9ede28
- Parents:
- 0b0cd54
- git-author:
- Robin <roboburr@…> (08/08/2026 07:24:42 AM)
- git-committer:
- roboburr <roboburr@…> (08/08/2026 07:24:44 AM)
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
r0b0cd54 r86e6a45 3344 3344 } 3345 3345 const gateReq = Guardianship.gatereq.parseRequest(object); 3346 const r = await deliverDirectNote(site, { recipients, text: plain, language: object.language || null, inReplyTo: typeof object.inReplyTo === 'string' ? object.inReplyTo : null, attachments: atts, helpRequest: help, awayUntil, gateRequest: gateReq && gateReq.feature }); 3346 // Een hulpvraag oppikken of afsluiten vanuit de app (5.2.1, shaer-lgo). 3347 // De markering IS al een gewone directe note met een shaer:-eigenschap, 3348 // dus hier hoeft niets nieuws bij: de app stuurt precies wat de PWA 3349 // stuurt, en het gaat over dezelfde bezorging naar de mede-guardians. 3350 // 3351 // We boeken hem ook LOKAAL. Zonder dat zou de guardian die de knop 3352 // indrukt zijn eigen markering pas zien als hij bij zichzelf 3353 // terugkomt -- en die weg bestaat niet. 3354 const mark = Guardianship.help.parseMarker(object); 3355 if (mark) { 3356 const base2 = (process.env.PUBLIC_BASE_URL || '').replace(/\/+$/, ''); 3357 Guardianship.help.record(mark.noteUri, actorId(base2, site.slug), mark.kind, `@${site.slug}`); 3358 } 3359 const r = await deliverDirectNote(site, { recipients, text: plain, language: object.language || null, inReplyTo: typeof object.inReplyTo === 'string' ? object.inReplyTo : null, attachments: atts, helpRequest: help, awayUntil, gateRequest: gateReq && gateReq.feature, helpMark: mark }); 3347 3360 if (!r || !r.id) return { status: 502, error: 'direct_failed' }; 3348 3361 return { status: 201, id: r.id, url: `${base}/ap/notes/${r.id}` };
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)