mirror of
https://github.com/hoornet/vega.git
synced 2026-05-10 14:19:12 -07:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user