From 4ca0a22bfca7f04664ab0af4d9a037d1abfc5342 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Wed, 14 Nov 2018 20:18:47 +0900 Subject: [PATCH] Fix: default order of users/notes (#3234) --- src/server/api/endpoints/users/notes.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/api/endpoints/users/notes.ts b/src/server/api/endpoints/users/notes.ts index 64febdfcfe..e6df1eeece 100644 --- a/src/server/api/endpoints/users/notes.ts +++ b/src/server/api/endpoints/users/notes.ts @@ -180,6 +180,8 @@ export default define(meta, (ps, me) => new Promise(async (res, rej) => { query.createdAt = { $lt: new Date(ps.untilDate) }; + } else { + sort._id = -1; } if (!ps.includeReplies) {