Changeset 26b1848 in Klonkt for src/services/ActivityPubService.js
- Timestamp:
- 08/11/2026 05:36:21 PM (4 weeks ago)
- Branches:
- main
- Children:
- fc41e04
- Parents:
- abbb72a
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
rabbb72a r26b1848 1338 1338 return m ? decodeURIComponent(m[1]) : null; 1339 1339 } 1340 function deriveHandle(actorUri) {1340 export function deriveHandle(actorUri) { 1341 1341 try { const u = new URL(actorUri); const seg = u.pathname.split('/').filter(Boolean).pop() || ''; return `@${seg}@${u.host}`; } catch { return String(actorUri || ''); } 1342 1342 } … … 3204 3204 if (mark) { 3205 3205 const base2 = (process.env.PUBLIC_BASE_URL || '').replace(/\/+$/, ''); 3206 Guardianship.help.record(mark.noteUri, actorId(base2, site.slug), mark.kind, `@${site.slug}`); 3206 // Met de VOLLEDIGE handle. Hier stond `@${site.slug}` -- zonder host, 3207 // dus een derde vorm naast de kale URI van de PWA-route en de echte 3208 // handle die een binnengekomen markering draagt. Drie spellingen van 3209 // dezelfde naam, en "door wie" was de hele vraag van shaer-lgo. 3210 const mij = actorId(base2, site.slug); 3211 Guardianship.help.record(mark.noteUri, mij, mark.kind, deriveHandle(mij)); 3207 3212 } 3208 3213 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 });
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)