Changeset 9e1b1bb in Klonkt


Ignore:
Timestamp:
07/01/2026 07:28:30 PM (2 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
badbba8
Parents:
737ea05
Message:

fix(fediverse): use verified actor doc in inbound Flag (resolveActor TDZ)

resolveActor is a local const declared later in handleInbox; the Flag branch ran
before it → TDZ crash. Flag is GATED so the verified signer doc is already available.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/services/ActivityPubService.js

    r737ea05 r9e1b1bb  
    961961    }
    962962    if (!targetSlug) return 202; // not about us / can't tell → drop
    963     const ai = actorInfo(await resolveActor(claimedActor).catch(() => null), claimedActor);
     963    // Flag is GATED, so `verified` is the signer's (reporter's) actor doc already.
     964    const ai = actorInfo(verified || null, claimedActor);
    964965    try {
    965966      db.prepare('INSERT INTO ap_reports (slug, actor_uri, actor_name, actor_handle, actor_icon, content, objects, created_at) VALUES (?,?,?,?,?,?,?,CURRENT_TIMESTAMP)')
Note: See TracChangeset for help on using the changeset viewer.