forked from Kieran/snort
bug: profile link hrp wrong
This commit is contained in:
parent
4c2a24d278
commit
fa823afa33
@ -99,7 +99,7 @@ export function eventLink(hex: u256, relays?: Array<string> | string) {
|
|||||||
*/
|
*/
|
||||||
export function profileLink(hex: HexKey, relays?: Array<string> | string) {
|
export function profileLink(hex: HexKey, relays?: Array<string> | string) {
|
||||||
const encoded = relays
|
const encoded = relays
|
||||||
? encodeTLV(NostrPrefix.Event, hex, Array.isArray(relays) ? relays : [relays])
|
? encodeTLV(NostrPrefix.Profile, hex, Array.isArray(relays) ? relays : [relays])
|
||||||
: hexToBech32(NostrPrefix.PublicKey, hex);
|
: hexToBech32(NostrPrefix.PublicKey, hex);
|
||||||
return `/p/${encoded}`;
|
return `/p/${encoded}`;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user