mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Merge branch 'fix-render-link-about' into 'main'
fix: render HTML link in bio Closes #9 See merge request soapbox-pub/ditto!575
This commit is contained in:
commit
47eca9e2f7
1 changed files with 3 additions and 2 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import { NSchema as n } from '@nostrify/nostrify';
|
||||
import { escape } from 'entities';
|
||||
import { nip19, UnsignedEvent } from 'nostr-tools';
|
||||
|
||||
import { Conf } from '@/config.ts';
|
||||
|
|
@ -7,6 +6,7 @@ import { MastodonAccount } from '@/entities/MastodonAccount.ts';
|
|||
import { type DittoEvent } from '@/interfaces/DittoEvent.ts';
|
||||
import { getLnurl } from '@/utils/lnurl.ts';
|
||||
import { parseAndVerifyNip05 } from '@/utils/nip05.ts';
|
||||
import { parseNoteContent } from '@/utils/note.ts';
|
||||
import { getTagSet } from '@/utils/tags.ts';
|
||||
import { faviconCache } from '@/utils/favicon.ts';
|
||||
import { nostrDate, nostrNow } from '@/utils.ts';
|
||||
|
|
@ -57,6 +57,7 @@ async function renderAccount(
|
|||
favicon = new URL('/favicon.ico', `https://${parsed05.domain}/`);
|
||||
}
|
||||
}
|
||||
const { html } = parseNoteContent(about || '', []);
|
||||
|
||||
return {
|
||||
id: pubkey,
|
||||
|
|
@ -77,7 +78,7 @@ async function renderAccount(
|
|||
header_static: banner,
|
||||
last_status_at: null,
|
||||
locked: false,
|
||||
note: about ? escape(about) : '',
|
||||
note: html,
|
||||
roles: [],
|
||||
source: opts.withSource
|
||||
? {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue