Fix some bugs with AI

This commit is contained in:
Jon Staab
2026-05-28 11:57:16 -07:00
parent 3b2f2b14e4
commit 76f65e1815
11 changed files with 69 additions and 50 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ export const loadUsingOutbox = async (kind: number, pubkey: string, filter: Filt
export const makeOutboxLoader =
(kind: number, filter: Filter = {}, limit = 1) =>
async (pubkey: string, relayHints: string[] = []) => {
const filters = [{...filter, kinds: [kind], authors: [pubkey]}]
const filters = [{...filter, kinds: [kind], authors: [pubkey], limit}]
const relays = Router.get().FromRelays(relayHints).getUrls()
await Promise.all([load({filters, relays}), loadUsingOutbox(kind, pubkey, filter)])