fix: offset of zero 0 in accountSearchController

This commit is contained in:
P. Reis 2024-10-23 20:42:10 -03:00
parent 994dff8e79
commit 89e475ca4a

View file

@ -136,7 +136,7 @@ const accountSearchController: AppController = async (c) => {
}
const followedPubkeys: Set<string> = viewerPubkey ? await getFollowedPubkeys(viewerPubkey) : new Set();
const pubkeys = Array.from(await getPubkeysBySearch(kysely, { q: query, limit, followedPubkeys }));
const pubkeys = Array.from(await getPubkeysBySearch(kysely, { q: query, limit, offset: 0, followedPubkeys }));
let events = event ? [event] : await store.query([{ kinds: [0], authors: pubkeys, limit }], {
signal,