diff options
| author | Adam Soltys <[email protected]> | 2026-08-28 21:00:11 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-28 21:00:11 -0700 |
| commit | f13acc1bf4ffa3d0e2733dc53041bbc61659a5af (patch) | |
| tree | 2a67050e4800848dabe7fba7a7b9912e51b4025a /src/app.js | |
| parent | 339e9badc0f06c098f2236af90501572bde1defa (diff) | |
| download | coinosv3-f13acc1bf4ffa3d0e2733dc53041bbc61659a5af.tar.gz coinosv3-f13acc1bf4ffa3d0e2733dc53041bbc61659a5af.zip | |
The profile editor learns to take a photo, not just a URL: an Upload button feeds the same signed nostr.build path the onboarding picker uses and fills the picture field with the result
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019eA8JRq9Wr7z2fRQk99HLi
Diffstat (limited to 'src/app.js')
| -rw-r--r-- | src/app.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -4439,6 +4439,9 @@ const ctx = { setAccount: (a, dir) => setAccountSel(a, dir), // Open (or create) a wallet from a mnemonic — used by nostr login. openMnemonic: async (mnemonic, passphrase, opts) => enterWallet(mnemonic, passphrase, opts), + // Upload an image (avatar) and get back its URL — the same signed + // nostr.build path the onboarding picker uses. + uploadImage: (file) => onbUpload(file), // A nostr login that lands mid-wizard: a restored wallet has been through // onboarding elsewhere, so the wizard ends without tour or prompts; a fresh // one falls through to the wallet + tour on the next render. |
