Include relay host in Nostr URIs when possible

This commit is contained in:
Alex Gleason committed 2025-12-24 20:46:55 -06:00
1 parent 1f87c68c4f
commit a9c1922e51
4 files changed
+18 -4

No files matched your search

+5 -1
View File
@@ -34,7 +34,11 @@ export function RepositoryCard({ repo }: RepositoryCardProps) {
const profileImage = authorData?.metadata?.picture;
// Construct Nostr clone URL
const nostrURI = new NostrURI({ pubkey: repo.pubkey, identifier: repo.repoId });
const nostrURI = new NostrURI({
pubkey: repo.pubkey,
identifier: repo.repoId,
relay: repo.relays[0],
});
const handleClone = async (e: React.MouseEvent) => {
// Prevent card click from triggering