From 7f0863a96ea5a9f6224a95e63af9eae4d21e61ac Mon Sep 17 00:00:00 2001
From: Mar0xy <marie@kaifa.ch>
Date: Sat, 23 Sep 2023 01:26:57 +0200
Subject: fix: buttons opening post view

---
 packages/frontend/src/components/MkNoteSub.vue | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

(limited to 'packages/frontend/src/components/MkNoteSub.vue')

diff --git a/packages/frontend/src/components/MkNoteSub.vue b/packages/frontend/src/components/MkNoteSub.vue
index 490211fad3..2a3cd9bf02 100644
--- a/packages/frontend/src/components/MkNoteSub.vue
+++ b/packages/frontend/src/components/MkNoteSub.vue
@@ -15,7 +15,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 					<Mfm v-if="note.cw != ''" style="margin-right: 8px;" :text="note.cw" :author="note.user" :i="$i"/>
 					<MkCwButton v-model="showContent" :note="note"/>
 				</p>
-				<div v-show="note.cw == null || showContent" @click="noteclick(note.id)">
+				<div v-show="note.cw == null || showContent">
 					<MkSubNoteContent :class="$style.text" :note="note"/>
 				</div>
 			</div>
@@ -52,7 +52,6 @@ import { $i } from '@/account.js';
 import { userPage } from "@/filters/user";
 import { checkWordMute } from "@/scripts/check-word-mute";
 import { defaultStore } from "@/store";
-import { useRouter } from '@/router.js';
 
 const props = withDefaults(defineProps<{
 	note: Misskey.entities.Note;
@@ -64,14 +63,8 @@ const props = withDefaults(defineProps<{
 	depth: 1,
 });
 
-const router = useRouter();
-
 const muted = ref(checkWordMute(props.note, $i, defaultStore.state.mutedWords));
 
-function noteclick(id: string) {
-	router.push(`/notes/${id}`);
-}
-
 let showContent = $ref(false);
 let replies: Misskey.entities.Note[] = $ref([]);
 
-- 
cgit v1.2.3-freya

