From e90bdae5453e828fe907c4dc6eca589cf50d0e10 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Mon, 26 Aug 2024 15:32:39 +0900 Subject: [PATCH] wip --- packages/frontend-embed/src/components/EmNote.vue | 7 ++++--- packages/frontend-embed/src/components/EmNoteDetailed.vue | 3 --- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/frontend-embed/src/components/EmNote.vue b/packages/frontend-embed/src/components/EmNote.vue index eeea84e3ab..518df27e67 100644 --- a/packages/frontend-embed/src/components/EmNote.vue +++ b/packages/frontend-embed/src/components/EmNote.vue @@ -44,7 +44,6 @@ SPDX-License-Identifier: AGPL-3.0-only
-

@@ -125,7 +124,6 @@ import EmReactionsViewer from '@/components/EmReactionsViewer.vue'; import EmMediaList from '@/components/EmMediaList.vue'; import EmCwButton from '@/components/EmCwButton.vue'; import EmPoll from '@/components/EmPoll.vue'; -import EmInstanceTicker from '@/components/EmInstanceTicker.vue'; import { pleaseLogin, type OpenOnRemoteOptions } from '@/scripts/please-login.js'; import { userPage } from '@/utils.js'; import { extractUrlFromMfm } from '@/scripts/extract-url-from-mfm.js'; @@ -135,7 +133,10 @@ import { getNoteSummary } from '@/scripts/get-note-summary.js'; import { shouldCollapsed } from '@/scripts/collapsed.js'; import { host } from '@/config.js'; import { url } from '@/config.js'; -import { getAppearNote } from '@/scripts/get-appear-note.js'; + +function getAppearNote(note: Misskey.entities.Note) { + return Misskey.note.isPureRenote(note) ? note.renote : note; +} const props = withDefaults(defineProps<{ note: Misskey.entities.Note; diff --git a/packages/frontend-embed/src/components/EmNoteDetailed.vue b/packages/frontend-embed/src/components/EmNoteDetailed.vue index 1ab00af036..ffc096b2c6 100644 --- a/packages/frontend-embed/src/components/EmNoteDetailed.vue +++ b/packages/frontend-embed/src/components/EmNoteDetailed.vue @@ -54,7 +54,6 @@ SPDX-License-Identifier: AGPL-3.0-only

-
@@ -135,7 +134,6 @@ import EmNoteSimple from '@/components/EmNoteSimple.vue'; import EmReactionsViewer from '@/components/EmReactionsViewer.vue'; import EmCwButton from '@/components/EmCwButton.vue'; import EmPoll from '@/components/EmPoll.vue'; -import EmInstanceTicker from '@/components/EmInstanceTicker.vue'; import EmA from '@/components/EmA.vue'; import EmAvatar from '@/components/EmAvatar.vue'; import EmTime from '@/components/EmTime.vue'; @@ -169,7 +167,6 @@ const isDeleted = ref(false); const parsed = appearNote.value.text ? mfm.parse(appearNote.value.text) : null; const isLong = shouldCollapsed(appearNote.value, []); const collapsed = ref(appearNote.value.cw == null && isLong); -const showTicker = appearNote.value.user.instance != null;