mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Connect to multiple Nostr relays. Sync NIP-65 relay list
This commit is contained in:
20 files changed
+468
-254
No files matched your search
@@ -194,10 +194,13 @@ export function useZaps(
|
||||
|
||||
const zapAmount = amount * 1000; // convert to millisats
|
||||
|
||||
const writeRelays = config.relayMetadata.relays
|
||||
.filter(r => r.write)
|
||||
.map(r => r.url);
|
||||
const zapRequest = nip57.makeZapRequest({
|
||||
event: actualTarget,
|
||||
amount: zapAmount,
|
||||
relays: [config.relayUrl],
|
||||
relays: writeRelays.length > 0 ? writeRelays : ['wss://relay.nostr.band'],
|
||||
comment
|
||||
});
|
||||
|
||||
@@ -255,7 +258,7 @@ export function useZaps(
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (webln) { // Try WebLN next
|
||||
try {
|
||||
await webln.sendPayment(newInvoice);
|
||||
|
||||
Reference in new issue
Block a user