From d869d7aa05083821c881d0265b836d24b115578c Mon Sep 17 00:00:00 2001
From: Mar0xy
Date: Fri, 22 Sep 2023 23:35:09 +0200
Subject: [PATCH] upd: View post on click
---
packages/frontend/src/components/MkNote.vue | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
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 () => {
]