feat: render embeds from link preview

closes #693
This commit is contained in:
2024-04-12 12:59:40 +01:00
parent 5292b8880e
commit 8d306ce466
6 changed files with 55 additions and 15 deletions

View File

@ -83,7 +83,7 @@ export function Note(props: NoteProps) {
<div className="body" onClick={e => goToEvent(e, ev)}>
<NoteText {...props} translated={translated} showTranslation={showTranslation} />
{translated && <TranslationInfo translated={translated} setShowTranslation={setShowTranslation} />}
{ev.kind === EventKind.Polls && <Poll ev={ev} />}
{ev.kind === EventKind.Polls && <Poll ev={ev} zaps={[]} />}
{optionsMerged.showFooter && (
<div className="mt-4">
<NoteFooter ev={ev} replyCount={props.threadChains?.get(chainKey(ev))?.length} />