1
0
forked from mirror/misskey
This commit is contained in:
tamaina 2023-02-25 09:39:16 +00:00
parent c8111659e1
commit 995635dd27

View File

@ -146,30 +146,10 @@ export const paramDef = {
}, },
// (re)note with text, files and poll are optional // (re)note with text, files and poll are optional
anyOf: [ anyOf: [
{ { required: ['text'] },
properties: { { required: ['fileIds'] },
text: { type: 'string' }, { required: ['mediaIds'] },
}, { required: ['poll'] },
required: ['text'],
},
{
properties: {
fileIds: { type: 'array' },
},
required: ['fileIds'],
},
{
properties: {
mediaIds: { type: 'array' },
},
required: ['mediaIds'],
},
{
properties: {
poll: { type: 'object' },
},
required: ['poll'],
},
], ],
} as const; } as const;