Changeset de3d24b in Klonkt for src/routes/posts.js


Ignore:
Timestamp:
06/24/2026 01:53:00 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
ffa53cc
Parents:
7c44c12
Message:

fix(activitypub): link owner's remote-reply to the local post so it shows

resolveRemoteNote now resolves the local post (findThreadTarget on the note id);
the authorize_interaction flow stores the owner's reply with that post_id, so a
reply to a comment on your own post appears nested in the thread.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/routes/posts.js

    r7c44c12 rde3d24b  
    538538    // Resolve + deliver in the background so Send responds instantly.
    539539    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 }))
    541541      .catch((e) => console.warn('[AP] remote reply failed:', e.message));
    542542  }
Note: See TracChangeset for help on using the changeset viewer.