diff --git a/src/lib/components/Kind1.svelte b/src/lib/components/Kind1.svelte index 5524269..2093fd1 100644 --- a/src/lib/components/Kind1.svelte +++ b/src/lib/components/Kind1.svelte @@ -1,24 +1,63 @@ -{#each treeItem.children as [id, tree], i (id)} -
- - profile pic -
-
- username - {new Date(tree.event.created_at*1000).toLocaleString()} -
-

- {console.log(tree)}}>print to console - {newParent.update(existing=>{existing.push(id); return existing})}} class="text-sm font-normal text-gray-500 dark:text-gray-400 float-right">{tree.children.size} -
-
-{/each} \ No newline at end of file + +{#each t as [id, tree], i (id)} +
+ + profile pic +
+
+ username + {new Date(tree.event.created_at * 1000).toLocaleString()} +
+

+ +

+ { + console.log(tree); + }}>print to console + { + newParent.update((existing) => { + existing.push(id); + return existing; + }); + }} + class="text-sm font-normal text-gray-500 dark:text-gray-400 float-right" + >{tree.children.size} +
+
+{/each} diff --git a/src/lib/workers/firehose.ts b/src/lib/workers/firehose.ts index ea17210..bcdf6c7 100644 --- a/src/lib/workers/firehose.ts +++ b/src/lib/workers/firehose.ts @@ -25,7 +25,7 @@ const _ndk = writable( "wss://relay.primal.net", // "wss://pyramid.fiatjaf.com", ], - enableOutboxModel: false, + enableOutboxModel: true, }) ); @@ -39,9 +39,6 @@ const replaceableKinds = [0, 3]; const processedIdForKind: Record = {}; let responseStore: Writable | undefined; // = -// responseStore.subscribe((response) => { -// postMessage(response); -// }); function init(pubkey?: string) { if (!responseData) { @@ -59,15 +56,6 @@ function init(pubkey?: string) { updateEventMap(); }); - // let _masterFollows = writable(responseData.followLists.get(responseData.masterPubkey)) - // let masterFollows = derived(_masterFollows, ($mfs)=>{ - // if ($mfs) { - // return $mfs.size - // } else { - // return 0 - // } - // }) - let masterFollows = derived(responseStore, ($responseStore) =>{ if ($responseStore.masterPubkey) { return $responseStore.followLists.get($responseStore.masterPubkey)?.size