Changeset 33e1dbd in Klonkt for src/routes
- Timestamp:
- 07/19/2026 05:08:32 PM (7 weeks ago)
- Branches:
- main
- Children:
- feced2c
- Parents:
- 2d66d66
- git-author:
- Robin <roboburr@…> (07/19/2026 05:08:12 PM)
- git-committer:
- Robin <roboburr@…> (07/19/2026 05:08:32 PM)
- File:
-
- 1 edited
-
src/routes/posts.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/posts.js
r2d66d66 r33e1dbd 712 712 const uri = (req.body.uri || '').toString(); 713 713 const text = (req.body.text || '').toString(); 714 if (site && uri && text.trim()) { 714 const html = (req.body.content || '').toString(); // rich reply editor HTML (sanitized in deliverReply) 715 const language = (req.body.language || '').toString(); 716 if (site && uri && (text.trim() || html.trim())) { 715 717 // Resolve + deliver in the background so Send responds instantly. 716 718 ActivityPubService.resolveRemoteNote(uri) 717 .then((parent) => parent && ActivityPubService.deliverReply(site, { postId: parent.localPostId || '', postSlug: null, parent, text }))719 .then((parent) => parent && ActivityPubService.deliverReply(site, { postId: parent.localPostId || '', postSlug: null, parent, text, html, language })) 718 720 .catch((e) => console.warn('[AP] remote reply failed:', e.message)); 719 721 } … … 1257 1259 const parent = ActivityPubService.getInteractionById(req.body.interaction_id); 1258 1260 const text = (req.body.text || '').toString(); 1259 if (parent && parent.post_id === post.id && text.trim()) { 1261 const html = (req.body.content || '').toString(); // rich reply editor HTML (sanitized in deliverReply) 1262 if (parent && parent.post_id === post.id && (text.trim() || html.trim())) { 1260 1263 try { 1261 await ActivityPubService.deliverReply(site, { postId: post.id, postSlug: post.slug, parent, text }); 1264 await ActivityPubService.deliverReply(site, { 1265 postId: post.id, postSlug: post.slug, parent, text, html, 1266 language: (req.body.language || '').toString(), 1267 }); 1262 1268 } catch (e) { console.warn('[AP] reply send failed:', e.message); } 1263 1269 }
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)