diff --git a/packages/frontend/src/components/MkNoteDetailed.vue b/packages/frontend/src/components/MkNoteDetailed.vue index a1360aba9..5bb8ef185 100644 --- a/packages/frontend/src/components/MkNoteDetailed.vue +++ b/packages/frontend/src/components/MkNoteDetailed.vue @@ -12,9 +12,9 @@ SPDX-License-Identifier: AGPL-3.0-only :class="$style.root" >
-
+
@@ -137,9 +137,9 @@ SPDX-License-Identifier: AGPL-3.0-only
-
+
@@ -495,9 +495,9 @@ function blur() { el.value.blur(); } -const repliesLoaded = ref(false); +// const repliesLoaded = ref(false); function loadReplies() { - repliesLoaded.value = true; + // repliesLoaded.value = true; os.api('notes/children', { noteId: appearNote.id, limit: 30, @@ -506,15 +506,20 @@ function loadReplies() { }); } -const conversationLoaded = ref(false); +// const conversationLoaded = ref(false); function loadConversation() { - conversationLoaded.value = true; + // conversationLoaded.value = true; os.api('notes/conversation', { noteId: appearNote.replyId, }).then(res => { conversation.value = res.reverse(); }); } + +onMounted(()=>{ + loadReplies(); + loadConversation(); +});