summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkNoteSub.vue
diff options
context:
space:
mode:
authorMar0xy <marie@kaifa.ch>2023-09-23 01:26:57 +0200
committerMar0xy <marie@kaifa.ch>2023-09-23 01:26:57 +0200
commit7f0863a96ea5a9f6224a95e63af9eae4d21e61ac (patch)
tree186f88d2975023b90e09a24856f865706e10af23 /packages/frontend/src/components/MkNoteSub.vue
parentMerge branch 'develop' of https://github.com/transfem-org/Sharkey into develop (diff)
downloadsharkey-7f0863a96ea5a9f6224a95e63af9eae4d21e61ac.tar.gz
sharkey-7f0863a96ea5a9f6224a95e63af9eae4d21e61ac.tar.bz2
sharkey-7f0863a96ea5a9f6224a95e63af9eae4d21e61ac.zip
fix: buttons opening post view
Diffstat (limited to 'packages/frontend/src/components/MkNoteSub.vue')
-rw-r--r--packages/frontend/src/components/MkNoteSub.vue9
1 files changed, 1 insertions, 8 deletions
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([]);