summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api/endpoints
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-08-21 19:10:16 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-08-21 19:10:16 +0900
commit8cbbb80e3f08f94f7235d40bd7ae4d4c6781011e (patch)
treea6757752354230d441aad3921e55ec161dfaaad3 /packages/backend/src/server/api/endpoints
parentfix(backend): クリップ一覧APIをページネーションに対応させ... (diff)
downloadmisskey-8cbbb80e3f08f94f7235d40bd7ae4d4c6781011e.tar.gz
misskey-8cbbb80e3f08f94f7235d40bd7ae4d4c6781011e.tar.bz2
misskey-8cbbb80e3f08f94f7235d40bd7ae4d4c6781011e.zip
fix(backend): `notes/mentions` で場合によっては並び順が正しく返されない問題を修正
Fix #16398
Diffstat (limited to 'packages/backend/src/server/api/endpoints')
-rw-r--r--packages/backend/src/server/api/endpoints/notes/mentions.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/server/api/endpoints/notes/mentions.ts b/packages/backend/src/server/api/endpoints/notes/mentions.ts
index 05ffdc1f97..e775bdb7fd 100644
--- a/packages/backend/src/server/api/endpoints/notes/mentions.ts
+++ b/packages/backend/src/server/api/endpoints/notes/mentions.ts
@@ -66,7 +66,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
.orWhere(':meIdAsList <@ note.visibleUserIds');
}))
// Avoid scanning primary key index
- .orderBy('CONCAT(note.id)', 'DESC')
+ .orderBy('CONCAT(note.id)', (ps.sinceDate || ps.sinceId) ? 'ASC' : 'DESC')
.innerJoinAndSelect('note.user', 'user')
.leftJoinAndSelect('note.reply', 'reply')
.leftJoinAndSelect('note.renote', 'renote')