Changeset 1b1cc89 in Klonkt for src/services/ActivityPubService.js
- Timestamp:
- 07/01/2026 12:45:51 AM (2 months ago)
- Branches:
- main
- Children:
- e1c4f3e
- Parents:
- 0f2d441
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
r0f2d441 r1b1cc89 1662 1662 fwStmts().ins.run(site.slug, actor.id, ai.handle, ai.name, ai.icon, ai.url, actor.inbox, followId, 'pending', autoBoost ? 1 : 0); 1663 1663 const follow = { '@context': AP_CONTEXT, id: followId, type: 'Follow', actor: me, object: actor.id }; 1664 try { await deliver(actor.inbox, follow, `${me}#main-key`, keys.private_pem); } 1665 catch (e) { console.warn('[AP] follow deliver failed:', e.message); } 1664 // Deliver via the retry queue: a Follow that fails the first attempt (peer down, 1665 // timeout, transient 5xx) is retried with backoff instead of staying stuck on 1666 // 'pending' forever — the Accept can only come back once the Follow lands. 1667 await deliverWithRetry(site.slug, actor.inbox, follow, `${me}#main-key`, keys.private_pem); 1666 1668 console.log('[AP] follow', site.slug, '→', actor.id); 1667 1669 // Follow + feature in one step → backfill their recent posts into the Cirkel right away.
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)