chore: Update translations
This commit is contained in:
@ -197,9 +197,7 @@ function ProfileClip({ ev }: { ev: NostrEvent }) {
|
|||||||
id="dkUMIH"
|
id="dkUMIH"
|
||||||
values={{
|
values={{
|
||||||
name: (
|
name: (
|
||||||
<Link
|
<Link to={profileLink(profile, ev.pubkey)} className="font-medium text-primary">
|
||||||
to={profileLink(profile, ev.pubkey)}
|
|
||||||
className="font-medium text-primary">
|
|
||||||
{getName(ev.pubkey, profile)}
|
{getName(ev.pubkey, profile)}
|
||||||
</Link>
|
</Link>
|
||||||
),
|
),
|
||||||
|
@ -37,7 +37,7 @@ export function getHost(ev?: NostrEvent) {
|
|||||||
|
|
||||||
export function profileLink(meta: CachedMetadata | undefined, pubkey: string) {
|
export function profileLink(meta: CachedMetadata | undefined, pubkey: string) {
|
||||||
if (meta && meta.nip05 && meta.nip05.endsWith("@zap.stream") && meta.isNostrAddressValid) {
|
if (meta && meta.nip05 && meta.nip05.endsWith("@zap.stream") && meta.isNostrAddressValid) {
|
||||||
const [name,] = meta.nip05.split("@");
|
const [name] = meta.nip05.split("@");
|
||||||
return `/p/${name}`;
|
return `/p/${name}`;
|
||||||
}
|
}
|
||||||
return `/p/${hexToBech32("npub", pubkey)}`;
|
return `/p/${hexToBech32("npub", pubkey)}`;
|
||||||
|
Reference in New Issue
Block a user