Changeset 0a686a0 in Klonkt
- Timestamp:
- 07/25/2026 10:00:46 AM (7 weeks ago)
- Branches:
- main
- Children:
- 787e0d9
- Parents:
- 4f15f67
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
r4f15f67 r0a686a0 1412 1412 const followObj = { id: followId, type: 'Follow', actor: who, object: wardActor }; 1413 1413 for (const g of wardGuardians) { 1414 const gslug = slugFromActorUrl(g); 1415 if (gslug) { 1414 // Local ONLY when the guardian lives on THIS instance: slugFromActorUrl 1415 // ignores the host (an /ap/users/x path on a remote host is someone 1416 // else's actor), so also require our base + an existing local site. 1417 const gslug = g.startsWith(`${base}/`) ? slugFromActorUrl(g) : null; 1418 const isLocal = gslug && db.prepare('SELECT 1 FROM sites WHERE slug = ?').get(gslug); 1419 if (isLocal) { 1416 1420 const L = pushLang(gslug); 1417 1421 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)}/guardian2` });
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)