Change reply order from oldest to newest

This commit is contained in:
Freeplay 2023-02-23 22:45:12 -05:00
parent 842d48c4a8
commit 2311956dfa
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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() ?? [];
</script>
<style lang="scss" scoped>