From c359eda1d60d145f6fbe8671482a48b5ee7407ac Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 4 Apr 2026 00:10:55 -0500 Subject: [PATCH] Fix showcase card clone URLs to use NostrURI for proper npub encoding --- src/hooks/useAppSubmissions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hooks/useAppSubmissions.ts b/src/hooks/useAppSubmissions.ts index e8e37e34..b2f79e20 100644 --- a/src/hooks/useAppSubmissions.ts +++ b/src/hooks/useAppSubmissions.ts @@ -3,6 +3,7 @@ import { useQuery } from '@tanstack/react-query'; import { nip19 } from 'nostr-tools'; import type { NostrEvent, NostrFilter, NRelay, NPool } from '@nostrify/nostrify'; import { useAppContext } from '@/hooks/useAppContext'; +import { NostrURI } from '@/lib/NostrURI'; export interface AppSubmission extends NostrEvent { appName: string; @@ -79,7 +80,7 @@ function repositoryUrlFromATag(aTagValue: string): string { const parts = aTagValue.split(':'); if (parts.length < 3) return ''; const [, pubkey, identifier] = parts; - return `nostr://${pubkey}/${identifier}`; + return new NostrURI({ pubkey, identifier }).toString(); } export function useAppSubmissions() {