Changeset 5a6a457 in Klonkt for src/routes
- Timestamp:
- 06/25/2026 05:15:48 AM (3 months ago)
- Branches:
- main
- Children:
- d7526bd
- Parents:
- 99234c3
- File:
-
- 1 edited
-
src/routes/posts.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/posts.js
r99234c3 r5a6a457 353 353 } 354 354 } catch (e) { /* FTS issues non-fatal */ } 355 356 // ActivityPub: federate when a post BECOMES published (draft/scheduled → published 357 // via the editor). A brand-new published post is handled in the create route. 358 if (finalStatus === 'published' && post.status !== 'published' && !fanOnly) { 359 ActivityPubService.deliverCreate(site, { 360 id: post.id, slug: finalSlug, title: title || finalSlug, 361 content: cleanContent, cover_image_url: cover_image_url || null, 362 published_at: publishedAt, created_at: post.created_at, 363 }).catch(() => { /* best-effort */ }); 364 } 355 365 356 366 res.redirect(`${res.locals.siteUrlBase || ''}/${finalSlug}`);
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)