test: more search options

This commit is contained in:
Mar0xy 2023-10-21 22:03:19 +02:00
parent 4a90464f03
commit d392edbc6b
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
3 changed files with 24 additions and 1 deletions

View file

@ -46,8 +46,10 @@ export const paramDef = {
type: 'string',
description: 'The local host is represented with `.`.',
},
filetype: { type: 'string', nullable: true },
userId: { type: 'string', format: 'misskey:id', nullable: true, default: null },
channelId: { type: 'string', format: 'misskey:id', nullable: true, default: null },
order: { type: 'string' },
},
required: ['query'],
} as const;
@ -71,6 +73,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
userId: ps.userId,
channelId: ps.channelId,
host: ps.host,
filetype: ps.filetype,
order: ps.order,
}, {
untilId: ps.untilId,
sinceId: ps.sinceId,