Fix creation of nostr:// URIs

This commit is contained in:
Alex Gleason committed 2025-10-16 18:00:46 -05:00
1 parent bec4782a38
commit b4d9fc1967
1 file changed
+2 -2
+2 -2
View File
@@ -424,8 +424,8 @@ export function GitDialog({ projectId, children, open, onOpenChange }: GitDialog
});
// Set origin remote to Nostr URL
// Format: nostr://<hex-pubkey>/<repo-id>
const nostrUrl = `nostr://${user.pubkey}/${projectId}`;
// Format: nostr://<npub>/<repo-id>
const nostrUrl = `nostr://${nip19.npubEncode(user.pubkey)}/${projectId}`;
try {
// Remove existing origin if it exists