1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-25 03:54:07 +02:00
This commit is contained in:
syuilo
2023-10-02 10:42:26 +09:00
parent b4c1de11f5
commit cb821d42a6
7 changed files with 7 additions and 10 deletions

View File

@@ -53,7 +53,6 @@ export const paramDef = {
includeRenotedMyNotes: { type: 'boolean', default: true },
includeLocalRenotes: { type: 'boolean', default: true },
withFiles: { type: 'boolean', default: false },
withReplies: { type: 'boolean', default: false },
withRenotes: { type: 'boolean', default: true },
},
required: [],
@@ -111,7 +110,9 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
const htlNoteIds = htlNoteIdsRes.map(x => x[1][1]).filter(x => x !== ps.untilId);
const ltlNoteIds = ltlNoteIdsRes.map(x => x[1][1]).filter(x => x !== ps.untilId);
const noteIds = Array.from(new Set([...htlNoteIds, ...ltlNoteIds]));
let noteIds = Array.from(new Set([...htlNoteIds, ...ltlNoteIds]));
noteIds.sort((a, b) => a > b ? -1 : 1);
noteIds = noteIds.slice(0, ps.limit);
if (noteIds.length === 0) {
return [];