Changeset 5bf63b7 in Klonkt for src/routes/posts.js
- Timestamp:
- 06/24/2026 10:35:48 AM (3 months ago)
- Branches:
- main
- Children:
- dd1028a
- Parents:
- 6bd25d1
- File:
-
- 1 edited
-
src/routes/posts.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/posts.js
r6bd25d1 r5bf63b7 19 19 import { audioUrl } from '../services/AudioStreamService.js'; 20 20 import { toWebp } from '../services/ImageWebpService.js'; 21 import ActivityPubService from '../services/ActivityPubService.js'; 21 22 22 23 const __dirname = path.dirname(fileURLToPath(import.meta.url)); … … 230 231 ).run(HtmlSanitizerService.toPlainText(cleanContent), title || '', req.session.user.username, postId); 231 232 } catch (e) { /* FTS index issues are non-fatal */ } 233 234 // ActivityPub: federate a freshly published public post to followers. 235 if (!fanOnly) { 236 ActivityPubService.deliverCreate(site, { 237 id: postId, slug: finalSlug, title: title || finalSlug, 238 content: cleanContent, published_at: publishedAt, created_at: now, 239 }).catch(() => { /* best-effort */ }); 240 } 232 241 } 233 242
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)