Changeset de3d24b in Klonkt
- Timestamp:
- 06/24/2026 01:53:00 PM (3 months ago)
- Branches:
- main
- Children:
- ffa53cc
- Parents:
- 7c44c12
- Location:
- src
- Files:
-
- 2 edited
-
routes/posts.js (modified) (1 diff)
-
services/ActivityPubService.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/posts.js
r7c44c12 rde3d24b 538 538 // Resolve + deliver in the background so Send responds instantly. 539 539 ActivityPubService.resolveRemoteNote(uri) 540 .then((parent) => parent && ActivityPubService.deliverReply(site, { postId: '', postSlug: null, parent, text }))540 .then((parent) => parent && ActivityPubService.deliverReply(site, { postId: parent.localPostId || '', postSlug: null, parent, text })) 541 541 .catch((e) => console.warn('[AP] remote reply failed:', e.message)); 542 542 } -
src/services/ActivityPubService.js
r7c44c12 rde3d24b 537 537 const actor = await fetchActor(actorUri).catch(() => null); 538 538 const ai = actorInfo(actor, actorUri); 539 // Is what we're replying to a post (or a comment) on one of OUR posts? If so, 540 // link our reply to that local post so it shows nested in the post thread. 541 const localTgt = findThreadTarget(note.id, (process.env.PUBLIC_BASE_URL || '').replace(/\/+$/, '')); 539 542 // If this note is itself a reply (a comment), also reach the original post's 540 543 // author so THEIR server threads our reply under the comment. … … 564 567 images, 565 568 threadInbox, // post author's inbox (if a comment) 569 localPostId: localTgt ? localTgt.post_id : '', // our post this belongs to (if any) 566 570 preview: HtmlSanitizerService.toPlainText(note.content || '').slice(0, 240), 567 571 };
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)