diff --git a/src/lib/stores/visualizationConfig.ts b/src/lib/stores/visualizationConfig.ts index 9928797..1a49b1f 100644 --- a/src/lib/stores/visualizationConfig.ts +++ b/src/lib/stores/visualizationConfig.ts @@ -27,8 +27,8 @@ export interface VisualizationConfig { // Default configurations for common event kinds const DEFAULT_EVENT_CONFIGS: EventKindConfig[] = [ - { kind: 0, limit: 50 }, // Metadata events (profiles) - controls how many profiles to fetch - { kind: 3, limit: 1, depth: 0 }, // Follow lists - limit 1 = just user's, higher = user's + from follows + { kind: 0, limit: 50 }, // Metadata events (profiles) - controls how many profiles to display + { kind: 3, limit: 0, depth: 0 }, // Follow lists - limit 0 = don't fetch, >0 = fetch follow lists { kind: 30040, limit: 20, nestedLevels: 1 }, { kind: 30041, limit: 20 }, { kind: 30818, limit: 20 }, diff --git a/src/routes/visualize/+page.svelte b/src/routes/visualize/+page.svelte index 62885d0..7ee9e7f 100644 --- a/src/routes/visualize/+page.svelte +++ b/src/routes/visualize/+page.svelte @@ -83,7 +83,13 @@ const allFollowEvents: NDKEvent[] = []; const processedPubkeys = new Set(); - debug(`Fetching kind 3 follow lists with depth ${depth}, addFollowLists: ${config.addFollowLists}`); + debug(`Fetching kind 3 follow lists with limit ${config.limit}, depth ${depth}`); + + // If limit is 0, don't fetch any follow lists + if (config.limit === 0) { + debug("Follow list limit is 0, skipping fetch"); + return []; + } // Get the current user's pubkey const currentUserPubkey = get(activePubkey);