From 9f8e75835641b0c631664fe098ef4b3b62011893 Mon Sep 17 00:00:00 2001 From: NoriDev Date: Sat, 23 Sep 2023 18:04:02 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20endpoint=E3=82=92=E6=9C=80=E5=88=9D?= =?UTF-8?q?=E4=B8=80=E5=BA=A6=E3=81=A0=E3=81=91=E5=91=BC=E3=81=B3=E5=87=BA?= =?UTF-8?q?=E3=81=99=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../frontend/src/components/MkNoteDetailed.vue | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/packages/frontend/src/components/MkNoteDetailed.vue b/packages/frontend/src/components/MkNoteDetailed.vue index b7417464b4..f16c6665e2 100644 --- a/packages/frontend/src/components/MkNoteDetailed.vue +++ b/packages/frontend/src/components/MkNoteDetailed.vue @@ -659,12 +659,14 @@ function blur() { el.value.blur(); } -os.api('notes/children', { - noteId: appearNote.id, - limit: 4, -}).then(res => { - replies.value = res; -}); +function loadRepliesSimple() { + os.api('notes/children', { + noteId: appearNote.id, + limit: 4, + }).then(res => { + replies.value = res; + }); +} const repliesLoaded = ref(false); function loadReplies() { @@ -686,6 +688,10 @@ function loadConversation() { conversation.value = res.reverse(); }); } + +onMounted(() => { + loadRepliesSimple(); +});