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