forked from Mirrors/elk
refactor: remove unused changes
This commit is contained in:
parent
445891299f
commit
299d33c7cb
1 changed files with 0 additions and 10 deletions
|
@ -27,16 +27,6 @@ const vnode = $computed(() => {
|
||||||
})
|
})
|
||||||
return vnode
|
return vnode
|
||||||
})
|
})
|
||||||
|
|
||||||
// remove link at the end of content if matches preview card URL
|
|
||||||
const previewCardURL = (status as mastodon.v1.Status).card?.url
|
|
||||||
if (vnode?.children) {
|
|
||||||
const contentChildren = vnode?.children[vnode?.children.length - 1].children
|
|
||||||
const contentLastChild = contentChildren[contentChildren.length - 1]
|
|
||||||
const matchesPreviewURL = contentLastChild.type === 'a' && contentLastChild.props?.href === previewCardURL
|
|
||||||
if (matchesPreviewURL)
|
|
||||||
contentChildren.pop()
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
Loading…
Reference in a new issue