From 2311956dfa6a072d635c287062b942e9d0c5e1c6 Mon Sep 17 00:00:00 2001 From: Freeplay Date: Thu, 23 Feb 2023 22:45:12 -0500 Subject: [PATCH] Change reply order from oldest to newest --- packages/client/src/components/MkNoteDetailed.vue | 2 +- packages/client/src/components/MkNoteSub.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/components/MkNoteDetailed.vue b/packages/client/src/components/MkNoteDetailed.vue index 88e13119fe..302f4bc4f7 100644 --- a/packages/client/src/components/MkNoteDetailed.vue +++ b/packages/client/src/components/MkNoteDetailed.vue @@ -294,7 +294,7 @@ os.api('notes/children', { depth: 6, }).then(res => { replies.value = res; - directReplies.value = res.filter(note => note.replyId === appearNote.id || note.renoteId === appearNote.id); + directReplies.value = res.filter(note => note.replyId === appearNote.id || note.renoteId === appearNote.id).reverse(); }); if (appearNote.replyId) { diff --git a/packages/client/src/components/MkNoteSub.vue b/packages/client/src/components/MkNoteSub.vue index 66c5c4c466..16cbc20c0d 100644 --- a/packages/client/src/components/MkNoteSub.vue +++ b/packages/client/src/components/MkNoteSub.vue @@ -59,7 +59,7 @@ const props = withDefaults(defineProps<{ }); let showContent = $ref(false); -const replies: misskey.entities.Note[] = props.conversation?.filter(item => item.replyId === props.note.id || item.renoteId === props.note.id) ?? []; +const replies: misskey.entities.Note[] = props.conversation?.filter(item => item.replyId === props.note.id || item.renoteId === props.note.id).reverse() ?? [];