forked from mirror/misskey
✌️
This commit is contained in:
parent
c8111659e1
commit
995635dd27
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user