mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
refactor: remove stripimeta in 'about' of renderAccount
This commit is contained in:
parent
e3fec6b938
commit
a883aea585
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue