mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
handle underscores in nip05 correctly
This commit is contained in:
parent
b95e31cd5d
commit
8b8a801da8
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ const buildMetaTags = async (params: PathParams, url: string): Promise<string> =
|
|||
|
||||
const kind0 = await getProfileInfo(params.acct);
|
||||
const { description, image } = await getStatusInfo(params.statusId || '');
|
||||
const handle = kind0.nip05 || kind0.name || 'npub1xxx';
|
||||
const handle = kind0.nip05?.replace(/^@_/, '') || kind0.name || 'npub1xxx';
|
||||
|
||||
if (params.acct && params.statusId) {
|
||||
return tpl({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue