Changeset 80c36a1 in Klonkt for src/services/Scheduler.js
- Timestamp:
- 06/27/2026 01:04:55 AM (2 months ago)
- Branches:
- main
- Children:
- dcff893
- Parents:
- e390844
- File:
-
- 1 edited
-
src/services/Scheduler.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/services/Scheduler.js
re390844 r80c36a1 32 32 // get a duplicate FTS row → duplicate search hits. 33 33 try { ftsDel.run(p.id); fts.run(HtmlSanitizerService.toPlainText(p.content || ''), p.title || '', p.username || '', p.id); } catch { /* FTS failure is non-fatal */ } 34 // ActivityPub: federate the now-published post to followers. 35 if (!p.fan_only) { 36 try { 37 const site = siteStmt.get(p.site_id); 38 if (site) { 39 ActivityPubService.deliverCreate(site, { 40 id: p.id, slug: p.slug, title: p.title || p.slug, 41 content: p.content, cover_image_url: p.cover_image_url || null, 42 published_at: p.published_at || p.publish_at, created_at: p.created_at, 43 }).catch(() => { /* best-effort */ }); 44 } 45 } catch { /* non-fatal */ } 46 } 34 // ActivityPub: federate the now-published post to followers (fan_only → followers-only). 35 try { 36 const site = siteStmt.get(p.site_id); 37 if (site) { 38 ActivityPubService.deliverCreate(site, { 39 id: p.id, slug: p.slug, title: p.title || p.slug, 40 content: p.content, cover_image_url: p.cover_image_url || null, 41 published_at: p.published_at || p.publish_at, created_at: p.created_at, fan_only: p.fan_only, 42 }).catch(() => { /* best-effort */ }); 43 } 44 } catch { /* non-fatal */ } 47 45 } 48 46 return due.length;
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)