aboutsummaryrefslogtreecommitdiffstats
path: root/src/format.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-06-28 09:28:18 -0700
committerAdam Soltys <[email protected]>2026-06-28 09:28:18 -0700
commit96d9b7ee6914b157a17e078cfe597cb40f35c9e2 (patch)
treefc9d8c25d5f8fe250f5592dc2350ccd6add05c93 /src/format.js
parentd459e4aa196b356cfc24f2118cc1ef54eda7600e (diff)
downloadcoinosv3-96d9b7ee6914b157a17e078cfe597cb40f35c9e2.tar.gz
coinosv3-96d9b7ee6914b157a17e078cfe597cb40f35c9e2.zip
Route the gift DM to the recipient's published inbox relays
Discover where a recipient reads DMs before sending the claim code: prefer their NIP-17 DM relay list (kind 10050), else their NIP-65 read relays (kind 10002), unioned with the broad fallback set (so users without a list still get it). This makes the locked-gift DM far more likely to land in the recipient's client. Verified: resolves fiatjaf's real inbox relays; a key with no list returns none and falls back to defaults. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/format.js')
0 files changed, 0 insertions, 0 deletions