From 465ced12db3e0cd2072b32288262282985bcdf53 Mon Sep 17 00:00:00 2001 From: laoXong Date: Mon, 30 Sep 2024 12:10:23 +0800 Subject: [PATCH] Fix make notification read more smart --- packages/frontend/src/components/MkNoteDetailed.vue | 2 +- packages/frontend/src/components/MkNotifications.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/components/MkNoteDetailed.vue b/packages/frontend/src/components/MkNoteDetailed.vue index a9c72301e..c1b150e25 100644 --- a/packages/frontend/src/components/MkNoteDetailed.vue +++ b/packages/frontend/src/components/MkNoteDetailed.vue @@ -545,7 +545,7 @@ function loadConversation() { }); } -onMounted(()=>{ +onMounted(() => { loadReplies(); loadConversation(); }); diff --git a/packages/frontend/src/components/MkNotifications.vue b/packages/frontend/src/components/MkNotifications.vue index 31ac709fe..3405380c6 100644 --- a/packages/frontend/src/components/MkNotifications.vue +++ b/packages/frontend/src/components/MkNotifications.vue @@ -36,6 +36,7 @@ import { infoImageUrl } from '@/instance.js'; import { defaultStore } from '@/store.js'; import MkPullToRefresh from '@/components/MkPullToRefresh.vue'; import * as Misskey from 'misskey-js'; +import { misskeyApi } from '@/scripts/misskey-api'; const props = defineProps<{ excludeTypes?: typeof notificationTypes[number][];