From 8fc3c59fd02a73b0f92f1a8d4356e809658360e1 Mon Sep 17 00:00:00 2001 From: silberengel Date: Sun, 24 Aug 2025 09:48:59 +0200 Subject: [PATCH] changed function name to be more self-explanatory --- src/lib/utils/subscription_search.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/utils/subscription_search.ts b/src/lib/utils/subscription_search.ts index caacf21..1f4976c 100644 --- a/src/lib/utils/subscription_search.ts +++ b/src/lib/utils/subscription_search.ts @@ -54,7 +54,7 @@ const PRIORITIZED_EVENT_KINDS = new Set([ * 3. Events from community members * 4. All other events */ -async function prioritizeSubscriptionEvents( +async function prioritizeSearchEvents( events: NDKEvent[], targetPubkey?: string, maxResults: number = SEARCH_LIMITS.GENERAL_CONTENT, @@ -1238,7 +1238,7 @@ async function processContentEoseResults( // AI-NOTE: 2025-01-24 - Apply prioritization to first-order events for d-tag searches // For d-tag searches, we don't have a specific target pubkey, so we only prioritize by event kind - const prioritizedEvents = await prioritizeSubscriptionEvents( + const prioritizedEvents = await prioritizeSearchEvents( dedupedEvents, undefined, // No specific target pubkey for d-tag searches SEARCH_LIMITS.GENERAL_CONTENT, @@ -1283,7 +1283,7 @@ async function processTTagEoseResults(searchState: any, ndk?: NDK): Promise