Browse Source

find profiles better

master
silberengel 7 months ago
parent
commit
41a0771a5d
  1. 1
      src/lib/components/EventDetails.svelte
  2. 1
      src/lib/components/EventSearch.svelte
  3. 1
      src/lib/utils/nostrUtils.ts

1
src/lib/components/EventDetails.svelte

@ -5,6 +5,7 @@
import { toNpub } from "$lib/utils/nostrUtils"; import { toNpub } from "$lib/utils/nostrUtils";
import { neventEncode, naddrEncode, nprofileEncode } from "$lib/utils"; import { neventEncode, naddrEncode, nprofileEncode } from "$lib/utils";
import { activeInboxRelays, activeOutboxRelays } from "$lib/ndk"; import { activeInboxRelays, activeOutboxRelays } from "$lib/ndk";
import { searchRelays } from "$lib/consts";
import type { NDKEvent } from "$lib/utils/nostrUtils"; import type { NDKEvent } from "$lib/utils/nostrUtils";
import { getMatchingTags } from "$lib/utils/nostrUtils"; import { getMatchingTags } from "$lib/utils/nostrUtils";
import ProfileHeader from "$components/cards/ProfileHeader.svelte"; import ProfileHeader from "$components/cards/ProfileHeader.svelte";

1
src/lib/components/EventSearch.svelte

@ -11,6 +11,7 @@
} from "$lib/utils/search_utility"; } from "$lib/utils/search_utility";
import { neventEncode, naddrEncode, nprofileEncode } from "$lib/utils"; import { neventEncode, naddrEncode, nprofileEncode } from "$lib/utils";
import { activeInboxRelays, activeOutboxRelays, ndkInstance } from "$lib/ndk"; import { activeInboxRelays, activeOutboxRelays, ndkInstance } from "$lib/ndk";
import { searchRelays } from "$lib/consts";
import { getMatchingTags, toNpub } from "$lib/utils/nostrUtils"; import { getMatchingTags, toNpub } from "$lib/utils/nostrUtils";
import type { SearchResult } from '$lib/utils/search_types'; import type { SearchResult } from '$lib/utils/search_types';
import { userStore } from "$lib/stores/userStore"; import { userStore } from "$lib/stores/userStore";

1
src/lib/utils/nostrUtils.ts

@ -192,6 +192,7 @@ export async function createProfileLinkWithVerification(
}; };
const allRelays = [ const allRelays = [
...searchRelays, // Include search relays for profile searches
...communityRelays, ...communityRelays,
...userRelays, ...userRelays,
...secondaryRelays, ...secondaryRelays,

Loading…
Cancel
Save