From 299d33c7cbeb5d0b2063683a6e1848d511af48f2 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sun, 29 Jan 2023 00:45:06 +0100 Subject: [PATCH] refactor: remove unused changes --- components/status/StatusBody.vue | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/components/status/StatusBody.vue b/components/status/StatusBody.vue index e322e369..733f9974 100644 --- a/components/status/StatusBody.vue +++ b/components/status/StatusBody.vue @@ -27,16 +27,6 @@ const vnode = $computed(() => { }) 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() -}