Changeset e9c9ae1 in Klonkt for src/routes
- Timestamp:
- 07/19/2026 10:48:15 PM (7 weeks ago)
- Branches:
- main
- Children:
- ff3b8ce
- Parents:
- 5190152
- git-author:
- Robin <roboburr@…> (07/19/2026 10:47:10 PM)
- git-committer:
- Robin <roboburr@…> (07/19/2026 10:48:15 PM)
- File:
-
- 1 edited
-
src/routes/posts.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/posts.js
r5190152 re9c9ae1 761 761 let attachments = []; 762 762 try { attachments = JSON.parse(req.body.attachments || '[]'); } catch { /* geen media */ } 763 let mentions; // undefined = geen balk meegestuurd (legacy addressing) 764 try { if (req.body.mentions !== undefined) mentions = JSON.parse(req.body.mentions || '[]'); } catch { mentions = undefined; } 763 765 if (site && uri && (text.trim() || html.trim() || (Array.isArray(attachments) && attachments.length))) { 764 766 // Resolve + deliver in the background so Send responds instantly. 765 767 ActivityPubService.resolveRemoteNote(uri) 766 .then((parent) => parent && ActivityPubService.deliverReply(site, { postId: parent.localPostId || '', postSlug: null, parent, text, html, language, attachments }))768 .then((parent) => parent && ActivityPubService.deliverReply(site, { postId: parent.localPostId || '', postSlug: null, parent, text, html, language, attachments, mentions })) 767 769 .catch((e) => console.warn('[AP] remote reply failed:', e.message)); 768 770 } … … 1314 1316 let attachments = []; 1315 1317 try { attachments = JSON.parse(req.body.attachments || '[]'); } catch { /* geen media */ } 1318 let mentions; // undefined = geen balk meegestuurd (legacy addressing) 1319 try { if (req.body.mentions !== undefined) mentions = JSON.parse(req.body.mentions || '[]'); } catch { mentions = undefined; } 1316 1320 if (parent && parent.post_id === post.id && (text.trim() || html.trim() || (Array.isArray(attachments) && attachments.length))) { 1317 1321 try { 1318 1322 await ActivityPubService.deliverReply(site, { 1319 postId: post.id, postSlug: post.slug, parent, text, html, attachments, 1323 postId: post.id, postSlug: post.slug, parent, text, html, attachments, mentions, 1320 1324 language: (req.body.language || '').toString(), 1321 1325 });
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)