From 95f47c761c7d64f0c78bf9e123ff743d9b849da4 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 9 Feb 2026 13:40:46 +0000 Subject: [PATCH] Fix moderation lists error: import and instantiate RelayBatchFetcher The NostrClient.fetchListIncrementally() method delegates to this.relayBatchFetcher, but RelayBatchFetcher was never imported or instantiated in client.js, causing "Cannot read properties of undefined (reading 'fetchListIncrementally')" on every page load when admin lists try to load. https://claude.ai/code/session_01KuHrohbGvitA41A2fPD5p5 --- js/nostr/client.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/nostr/client.js b/js/nostr/client.js index 1084c6ac..bdddc40c 100644 --- a/js/nostr/client.js +++ b/js/nostr/client.js @@ -42,6 +42,7 @@ import { normalizeStoragePointer, resolveStoragePointerValue, } from "../utils/storagePointer.js"; +import { RelayBatchFetcher } from "./relayBatchFetcher.js"; import { createWatchHistoryManager, normalizePointerInput, @@ -580,6 +581,7 @@ export class NostrClient { constructor() { this.connectionManager = new ConnectionManager(this); this.signerManager = new SignerManager(this); + this.relayBatchFetcher = new RelayBatchFetcher(this); /** * @type {Map}