mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Include relay host in Nostr URIs when possible
This commit is contained in:
4 files changed
+18
-4
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user