CONFIG.profileLinkSuffix
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
Martti Malmi 2023-10-17 21:50:11 +03:00
parent d9bd198e8d
commit 2c7878ac7f
4 changed files with 6 additions and 3 deletions

View File

@ -14,5 +14,6 @@
"deck": true,
"zapPool": true
},
"eventLinkPrefix": "nevent"
"eventLinkPrefix": "nevent",
"profileLinkPrefix": "nprofile"
}

View File

@ -14,5 +14,6 @@
"deck": true,
"zapPool": true
},
"eventLinkPrefix": "note"
"eventLinkPrefix": "note",
"profileLinkPrefix": "npub"
}

View File

@ -53,4 +53,5 @@ declare const CONFIG: {
zapPool: boolean;
};
eventLinkPrefix: NostrPrefix;
profileLinkPrefix: NostrPrefix;
};

View File

@ -37,7 +37,7 @@ export function ProfileLink({
return `/${username}`;
}
return `/${new NostrLink(
NostrPrefix.Profile,
CONFIG.profileLinkPrefix,
pubkey,
undefined,
undefined,