From 9dd68d0c42614a21f33c7faee03bfdac6943494f 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 88e13119f..302f4bc4f 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 66c5c4c46..16cbc20c0 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() ?? [];