Changeset 5a93ac0 in Klonkt for src/routes
- Timestamp:
- 06/24/2026 11:16:28 AM (3 months ago)
- Branches:
- main
- Children:
- eb852c5
- Parents:
- 065452a
- Location:
- src/routes
- Files:
-
- 2 edited
-
activitypub.js (modified) (1 diff)
-
posts.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/activitypub.js
r065452a r5a93ac0 54 54 if (!site) return res.status(404).end(); 55 55 const posts = db.prepare( 56 `SELECT id, slug, title, content, published_at, created_at56 `SELECT id, slug, title, content, cover_image_url, published_at, created_at 57 57 FROM posts WHERE site_id = ? AND status = 'published' AND (fan_only IS NULL OR fan_only = 0) 58 58 ORDER BY COALESCE(published_at, created_at) DESC LIMIT 20` -
src/routes/posts.js
r065452a r5a93ac0 236 236 ActivityPubService.deliverCreate(site, { 237 237 id: postId, slug: finalSlug, title: title || finalSlug, 238 content: cleanContent, published_at: publishedAt, created_at: now, 238 content: cleanContent, cover_image_url: cover_image_url || null, 239 published_at: publishedAt, created_at: now, 239 240 }).catch(() => { /* best-effort */ }); 240 241 }
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)