diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-04-02 16:47:53 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-04-02 16:47:53 +0900 |
| commit | c03b70c949923b830a6d0361d1aa4d5f5614b7b7 (patch) | |
| tree | 6cf6995e808969e845f71b15cbd504e0dbf9e8ed /packages/backend/src/server/api/endpoints/users/following.ts | |
| parent | 12.109.0 (diff) | |
| download | sharkey-c03b70c949923b830a6d0361d1aa4d5f5614b7b7.tar.gz sharkey-c03b70c949923b830a6d0361d1aa4d5f5614b7b7.tar.bz2 sharkey-c03b70c949923b830a6d0361d1aa4d5f5614b7b7.zip | |
revert 484e023c0
Diffstat (limited to 'packages/backend/src/server/api/endpoints/users/following.ts')
| -rw-r--r-- | packages/backend/src/server/api/endpoints/users/following.ts | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/packages/backend/src/server/api/endpoints/users/following.ts b/packages/backend/src/server/api/endpoints/users/following.ts index 42cf5216e8..55460f7c67 100644 --- a/packages/backend/src/server/api/endpoints/users/following.ts +++ b/packages/backend/src/server/api/endpoints/users/following.ts @@ -38,29 +38,14 @@ export const meta = { export const paramDef = { type: 'object', properties: { + userId: { type: 'string', format: 'misskey:id' }, + username: { type: 'string' }, + host: { type: 'string', nullable: true }, sinceId: { type: 'string', format: 'misskey:id' }, untilId: { type: 'string', format: 'misskey:id' }, limit: { type: 'integer', minimum: 1, maximum: 100, default: 10 }, }, - anyOf: [ - { - properties: { - userId: { type: 'string', format: 'misskey:id' }, - }, - required: ['userId'], - }, - { - properties: { - username: { type: 'string' }, - host: { - type: 'string', - nullable: true, - description: 'The local host is represented with `null`.', - }, - }, - required: ['username', 'host'], - }, - ], + required: [], } as const; // eslint-disable-next-line import/no-default-export |