Changeset 65c5ec6 in Klonkt for src/services/ActivityPubService.js
- Timestamp:
- 08/10/2026 03:26:40 AM (4 weeks ago)
- Branches:
- main
- Children:
- 8064da1
- Parents:
- 6c83c9e
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
r6c83c9e r65c5ec6 2273 2273 if (isLocal) { 2274 2274 const L = pushLang(gslug); 2275 pushEvent(gslug, { type: 'guardian', title: i18nT(L, 'push.n_guard_cog_t'), body: i18nT(L, 'push.n_guard_cog_b', { who: fi.name || fi.handle || i18nT(L, 'notif.someone') }), url: `${pushPrefix(gslug)}/guardian` }); 2275 // Een volgverzoek is geen mede-voogdij. Deze push leende de tekst van 2276 // offer_for_ward en meldde dus een adoptie die niet gebeurde -- met de 2277 // volger als onderwerp. Eigen woorden, en allebei de namen erin: wie 2278 // er vraagt, en om wie het gaat (shaer-p729). 2279 pushEvent(gslug, { type: 'guardian', title: i18nT(L, 'push.n_guard_folin_t'), body: i18nT(L, 'push.n_guard_folin_b', { who: fi.name || fi.handle || i18nT(L, 'notif.someone'), ward: slug }), url: `${pushPrefix(gslug)}/guardian` }); 2276 2280 } else { 2277 2281 fetchActor(g).then((ga) => { … … 5515 5519 if (isLocal) { 5516 5520 const L = pushLang(gslug); 5517 pushEvent(gslug, { type: 'guardian', title: i18nT(L, 'push.n_guard_cog_t'), body: i18nT(L, 'push.n_guard_cog_b', { who: ti.name || ti.handle || i18nT(L, 'notif.someone') }), url: `${pushPrefix(gslug)}/guardian` }); 5521 // De andere richting, en dus andere woorden: hier vraagt het kind of het 5522 // iemand mag volgen. Met dezelfde tekst als hierboven kon een guardian 5523 // op zijn telefoon niet zien wie er nu eigenlijk om wie vroeg. 5524 pushEvent(gslug, { type: 'guardian', title: i18nT(L, 'push.n_guard_folout_t'), body: i18nT(L, 'push.n_guard_folout_b', { who: ti.name || ti.handle || i18nT(L, 'notif.someone'), ward: slug }), url: `${pushPrefix(gslug)}/guardian` }); 5518 5525 } else { 5519 5526 fetchActor(g).then((ga) => { … … 5625 5632 }); 5626 5633 const L = pushLang(gslug); 5627 pushEvent(gslug, { type: 'guardian', title: i18nT(L, 'push.n_guard_cog_t'), body: i18nT(L, 'push.n_guard_cog_b', { who: fai.name || fai.handle || i18nT(L, 'notif.someone') }), url: `${pushPrefix(gslug)}/guardian` }); 5634 // `uitgaand` staat hier al, drie regels hoger, en werd voor de melding 5635 // weer weggegooid: elke richting kreeg dezelfde tekst, geleend van 5636 // offer_for_ward. Op de telefoon las een volgverzoek dus als een 5637 // adoptie-aanvraag, en beide richtingen als elkaar. 5638 const wardNaam = (wardDoc && (wardDoc.preferredUsername || wardDoc.name)) || slugFromActorUrl(wardUri) || wardUri; 5639 const anderNaam = uitgaand 5640 ? ((dai && (dai.name || dai.handle)) || i18nT(L, 'notif.someone')) 5641 : (fai.name || fai.handle || i18nT(L, 'notif.someone')); 5642 pushEvent(gslug, { 5643 type: 'guardian', 5644 title: i18nT(L, uitgaand ? 'push.n_guard_folout_t' : 'push.n_guard_folin_t'), 5645 body: i18nT(L, uitgaand ? 'push.n_guard_folout_b' : 'push.n_guard_folin_b', { who: anderNaam, ward: wardNaam }), 5646 url: `${pushPrefix(gslug)}/guardian`, 5647 }); 5628 5648 stored = true; 5629 5649 }
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)