Skip to content

Commit

Permalink
Adjust to nostr-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorvsk committed Jan 10, 2024
1 parent f704a71 commit 9ff2542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/search/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
this.events = await pool.querySync(relays, {...filters, search: this.query})
console.log(this.events)
this.isLoading = false;
let metadata = await pool.querySync(relays, [{kinds: [0], authors: this.events.map(e => e.pubkey)}]);
let metadata = await pool.querySync(relays, {kinds: [0], authors: this.events.map(e => e.pubkey)});
this.events.map(e => e.metadata = metadata.filter(m => e.pubkey === m.pubkey)[0])
// pool.close() // TODO: doesn't work
}
Expand Down

0 comments on commit 9ff2542

Please sign in to comment.