diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index f085b30b03..6d1bc68e1a 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -57,7 +57,7 @@ SPDX-License-Identifier: AGPL-3.0-only

-
+
({{ i18n.ts.private }}) @@ -170,17 +170,24 @@ import { MenuItem } from '@/types/menu'; import MkRippleEffect from '@/components/MkRippleEffect.vue'; import { showMovedDialog } from '@/scripts/show-moved-dialog.js'; import { shouldCollapsed } from '@/scripts/collapsed.js'; +import { useRouter } from '@/router.js'; const props = defineProps<{ note: Misskey.entities.Note; pinned?: boolean; }>(); +const router = useRouter(); + const inChannel = inject('inChannel', null); const currentClip = inject | null>('currentClip', null); let note = $ref(deepClone(props.note)); +function noteclick(id: string) { + router.push(`/notes/${id}`); +} + // plugin if (noteViewInterruptors.length > 0) { onMounted(async () => {