mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-10-01 17:31:13 +00:00
Fix embedded note content escaping
This commit is contained in:
parent
ac780f455c
commit
72cd3d9d2e
@ -20,6 +20,8 @@ const EmbeddedNote: Component<{ note: PrimalNote, mentionedUsers?: Record<string
|
||||
const threadContext = useThreadContext();
|
||||
const intl = useIntl();
|
||||
|
||||
let noteContent: HTMLDivElement | undefined;
|
||||
|
||||
const noteId = () => nip19.noteEncode(props.note.post.id);
|
||||
|
||||
const navToThread = () => {
|
||||
@ -94,12 +96,13 @@ const EmbeddedNote: Component<{ note: PrimalNote, mentionedUsers?: Record<string
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<div class={styles.noteContent}>
|
||||
<div class={styles.noteContent} ref={noteContent}>
|
||||
<ParsedNote
|
||||
note={props.note}
|
||||
ignoreMentionedNotes={true}
|
||||
shorten={true}
|
||||
isEmbeded={true}
|
||||
width={noteContent?.getBoundingClientRect().width}
|
||||
/>
|
||||
</div>
|
||||
</>
|
||||
|
Loading…
Reference in New Issue
Block a user