diff options
| author | Adam Soltys <[email protected]> | 2025-01-18 22:39:24 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-01-18 22:39:24 -0800 |
| commit | 1a798efccf93c1a68fe76db13d85512f54f7078b (patch) | |
| tree | 204625ec66577c9352fc0bf88b06ad9511be6958 | |
| parent | 0fab410e8ba26ec2edf0810e129eeee0c6b42385 (diff) | |
| download | coinos-server-1a798efccf93c1a68fe76db13d85512f54f7078b.tar.gz coinos-server-1a798efccf93c1a68fe76db13d85512f54f7078b.zip | |
encodeURI zap requests
| -rw-r--r-- | routes/nostr.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/nostr.ts b/routes/nostr.ts index 0cf4a95e..7beeb687 100644 --- a/routes/nostr.ts +++ b/routes/nostr.ts @@ -273,7 +273,7 @@ export default { const callback = await getZapEndpoint({ content } as Event); const url = new URL(callback); url.searchParams.set("amount", (amount * 1000).toString()); - url.searchParams.set("nostr", JSON.stringify(event)); + url.searchParams.set("nostr", encodeURI(JSON.stringify(event))); console.log("URL", url.toString()); const json = await got(url.toString()).json(); |
