Fix zap hang from dead outbox relay, add note preview to zap history

Override NDK default outbox relays (purplepag.es DNS failure was stalling
getZapInfo), add 45s zap timeout, disable outbox on NWC instance, fix
follower notification dedup in poller. Zap history rows now show a
clickable preview of the original zapped note.
This commit is contained in:
Jure
2026-03-30 20:23:32 +02:00
parent 1d86023779
commit 383634fb56
5 changed files with 80 additions and 7 deletions

View File

@@ -44,6 +44,13 @@ export const FALLBACK_RELAYS = [
"wss://relay.snort.social",
];
// Override NDK's default outbox relays (purplepag.es can have DNS issues)
export const OUTBOX_RELAYS = [
"wss://relay.damus.io/",
"wss://nos.lol/",
"wss://relay.nostr.band/",
];
export function getStoredRelayUrls(): string[] {
try {
const stored = localStorage.getItem(RELAY_STORAGE_KEY);
@@ -63,6 +70,7 @@ export function getNDK(): NDK {
if (!ndk) {
ndk = new NDK({
explicitRelayUrls: getStoredRelayUrls(),
outboxRelayUrls: OUTBOX_RELAYS,
});
ndkCreatedAt = Date.now();
}
@@ -92,6 +100,7 @@ export async function resetNDK(): Promise<void> {
// Create fresh instance
ndk = new NDK({
explicitRelayUrls: getStoredRelayUrls(),
outboxRelayUrls: OUTBOX_RELAYS,
});
ndkCreatedAt = Date.now();