refactor: remove stripimeta in 'about' of renderAccount

This commit is contained in:
P. Reis 2024-10-31 14:03:36 -03:00
parent e3fec6b938
commit a883aea585

View file

@ -6,7 +6,7 @@ import { MastodonAccount } from '@/entities/MastodonAccount.ts';
import { type DittoEvent } from '@/interfaces/DittoEvent.ts'; import { type DittoEvent } from '@/interfaces/DittoEvent.ts';
import { getLnurl } from '@/utils/lnurl.ts'; import { getLnurl } from '@/utils/lnurl.ts';
import { parseAndVerifyNip05 } from '@/utils/nip05.ts'; import { parseAndVerifyNip05 } from '@/utils/nip05.ts';
import { parseNoteContent, stripimeta } from '@/utils/note.ts'; import { parseNoteContent } from '@/utils/note.ts';
import { getTagSet } from '@/utils/tags.ts'; import { getTagSet } from '@/utils/tags.ts';
import { faviconCache } from '@/utils/favicon.ts'; import { faviconCache } from '@/utils/favicon.ts';
import { nostrDate, nostrNow } from '@/utils.ts'; import { nostrDate, nostrNow } from '@/utils.ts';
@ -57,7 +57,7 @@ async function renderAccount(
favicon = new URL('/favicon.ico', `https://${parsed05.domain}/`); favicon = new URL('/favicon.ico', `https://${parsed05.domain}/`);
} }
} }
const { html } = parseNoteContent(stripimeta(about || '', event.tags), []); const { html } = parseNoteContent(about || '', []);
return { return {
id: pubkey, id: pubkey,