From 583adec9806250c7aff536998545349e42ec1af4 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Mon, 26 Aug 2024 13:59:03 +0900 Subject: [PATCH] Update EmNoteDetailed.vue --- .../frontend-embed/src/components/EmNoteDetailed.vue | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/frontend-embed/src/components/EmNoteDetailed.vue b/packages/frontend-embed/src/components/EmNoteDetailed.vue index 5c7a7b6ee5..1e8c140ad8 100644 --- a/packages/frontend-embed/src/components/EmNoteDetailed.vue +++ b/packages/frontend-embed/src/components/EmNoteDetailed.vue @@ -110,12 +110,12 @@ SPDX-License-Identifier: AGPL-3.0-only -

{{ number(appearNote.renoteCount) }}

+

{{ (appearNote.renoteCount) }}

-

{{ number(appearNote.reactionCount) }}

+

{{ (appearNote.reactionCount) }}

@@ -138,9 +138,7 @@ import EmPoll from '@/components/EmPoll.vue'; import EmInstanceTicker from '@/components/EmInstanceTicker.vue'; import { userPage } from '@/utils.js'; import { notePage } from '@/utils.js'; -import number from '@/filters/number.js'; import { i18n } from '@/i18n.js'; -import { extractUrlFromMfm } from '@/scripts/extract-url-from-mfm.js'; import { shouldCollapsed } from '@/to-be-shared/collapsed.js'; import { instance } from '@/instance.js'; import { url } from '@/config.js'; @@ -166,8 +164,7 @@ const appearNote = computed(() => isRenote ? note.value.renote as Misskey.entiti const showContent = ref(false); const isDeleted = ref(false); const parsed = appearNote.value.text ? mfm.parse(appearNote.value.text) : null; -const urls = parsed ? extractUrlFromMfm(parsed).filter((url) => appearNote.value.renote?.url !== url && appearNote.value.renote?.uri !== url) : null; -const isLong = shouldCollapsed(appearNote.value, urls ?? []); +const isLong = shouldCollapsed(appearNote.value, []); const collapsed = ref(appearNote.value.cw == null && isLong); const showTicker = appearNote.value.user.instance != null;