mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-14 02:54:19 +01:00
handle underscores in nip05 correctly
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user