Browse Source

Increase the number of publications returned

master^2
Silberengel 2 months ago
parent
commit
beea9d1b26
  1. 3
      src/lib/components/publications/PublicationFeed.svelte
  2. 3
      src/lib/utils/search_constants.ts

3
src/lib/components/publications/PublicationFeed.svelte

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
<script lang="ts">
import { indexKind } from "$lib/consts";
import { SEARCH_LIMITS } from "$lib/utils/search_constants.ts";
import { activeInboxRelays, activeOutboxRelays, getNdkContext } from "$lib/ndk";
import { filterValidIndexEvents, debounceAsync } from "$lib/utils";
import { Button, P, Skeleton, Spinner } from "flowbite-svelte";
@ -241,7 +242,7 @@ @@ -241,7 +242,7 @@
ws.send(JSON.stringify([
"REQ",
subId,
{ kinds: [indexKind], limit: 1000 }
{ kinds: [indexKind], limit: SEARCH_LIMITS.PUBLICATION_FEED_LIMIT }
]));
// Set up cleanup

3
src/lib/utils/search_constants.ts

@ -66,6 +66,9 @@ export const SEARCH_LIMITS = { @@ -66,6 +66,9 @@ export const SEARCH_LIMITS = {
/** Maximum events to fetch before processing in subscription search */
SUBSCRIPTION_FETCH_LIMIT: 1000,
/** Maximum index events to fetch per relay for publication feed */
PUBLICATION_FEED_LIMIT: 10000,
} as const;
// Nostr event kind ranges

Loading…
Cancel
Save