hashtag header
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Martti Malmi 2023-12-04 16:20:16 +02:00
parent 5f2cc0567f
commit 2920c2afaa

View File

@ -40,6 +40,8 @@ export function Header() {
} else if (nostrLink.type === NostrPrefix.PublicKey || nostrLink.type === NostrPrefix.Profile) {
title = <DisplayName pubkey={bech32ToHex(pageName)} />;
}
} else if (location.pathname.startsWith("/t/")) {
title = <span>#{location.pathname.split("/").slice(-1)}</span>;
}
return (