diff options
| author | Adam Soltys <[email protected]> | 2026-08-03 13:04:36 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-03 13:20:36 -0700 |
| commit | fb63b96ec90e32bc8adc5b77b2735097dde16bbd (patch) | |
| tree | bc4dc184a063559fc4b8e350d61805cd73955266 /routes/lnurl.ts | |
| parent | a9268a81c9538ddc9b2f122fb4a75f47ec129353 (diff) | |
| download | coinos-server-fb63b96ec90e32bc8adc5b77b2735097dde16bbd.tar.gz coinos-server-fb63b96ec90e32bc8adc5b77b2735097dde16bbd.zip | |
Let a migrated account hand its address to coinos v3
A `migrated` flag on the user, settable through /user and visible on the
public user endpoint. It changes exactly one thing: lnurlp for that
username defers to the names registrar, so payments to [email protected]
arrive in the person's v3 wallet. The account itself is untouched — same
username, same history, still usable here — which is why this is a flag
and not a rename or a shutdown.
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Wvj4aoeMZwA7VUGdJP9Swi
Diffstat (limited to 'routes/lnurl.ts')
| -rw-r--r-- | routes/lnurl.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/routes/lnurl.ts b/routes/lnurl.ts index ab9b64f1..58cea541 100644 --- a/routes/lnurl.ts +++ b/routes/lnurl.ts @@ -69,11 +69,11 @@ export default { .toLowerCase(), ); - // Not one of ours? It may be a v3 payment address, which lives at this - // same domain but is served by the names registrar. Hand its response - // through unchanged — the callback it returns is absolute, so the payer + // Not one of ours — or migrated to coinos v3, where the name now lives. + // Either way the names registrar answers for it. Hand its response + // through unchanged: the callback it returns is absolute, so the payer // talks to the registrar directly from here on. - if (!user) { + if (!user || user.migrated) { const name = username.toLowerCase().replace(/\s/g, ""); try { const r = await fetch( |
