feat: display embedded media player (#2417)

This commit is contained in:
Ayo Ayco 2023-11-07 10:57:44 +01:00 committed by GitHub
parent 0bd1209bee
commit 957f0d3b17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 146 additions and 5 deletions

View file

@ -17,7 +17,7 @@ const emojisObject = useEmojisFallback(() => status.emojis)
const vnode = $computed(() => {
if (!status.content)
return null
const vnode = contentToVNode(status.content, {
return contentToVNode(status.content, {
emojis: emojisObject.value,
mentions: 'mentions' in status ? status.mentions : undefined,
markdown: true,
@ -25,7 +25,6 @@ const vnode = $computed(() => {
status: 'id' in status ? status : undefined,
inReplyToStatus: newer,
})
return vnode
})
</script>