diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-06-10 14:03:28 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-06-10 14:03:28 +0900 |
| commit | d04014f875a03ae9b8f0f36338fd2446e7eb3150 (patch) | |
| tree | 447ab37a76486c9ec2ad5985e86c1f325b61f73c /src/server/api/endpoints/blocking/delete.ts | |
| parent | Merge branch 'develop' (diff) | |
| parent | 12.83.0 (diff) | |
| download | misskey-d04014f875a03ae9b8f0f36338fd2446e7eb3150.tar.gz misskey-d04014f875a03ae9b8f0f36338fd2446e7eb3150.tar.bz2 misskey-d04014f875a03ae9b8f0f36338fd2446e7eb3150.zip | |
Merge branch 'develop'
Diffstat (limited to 'src/server/api/endpoints/blocking/delete.ts')
| -rw-r--r-- | src/server/api/endpoints/blocking/delete.ts | 77 |
1 files changed, 2 insertions, 75 deletions
diff --git a/src/server/api/endpoints/blocking/delete.ts b/src/server/api/endpoints/blocking/delete.ts index 8caa3efc88..c69c8b14a7 100644 --- a/src/server/api/endpoints/blocking/delete.ts +++ b/src/server/api/endpoints/blocking/delete.ts @@ -8,11 +8,6 @@ import { getUser } from '../../common/getters'; import { Blockings, Users } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーのブロックを解除します。', - 'en-US': 'Unblock a user.' - }, - tags: ['account'], limit: { @@ -27,10 +22,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } } }, @@ -57,72 +48,8 @@ export const meta = { res: { type: 'object' as const, optional: false as const, nullable: false as const, - properties: { - id: { - type: 'string' as const, - optional: false as const, nullable: false as const, - format: 'id', - description: 'The unique identifier for this blocking.', - example: 'xxxxxxxxxx', - }, - name: { - type: 'string' as const, - optional: false as const, nullable: true as const - }, - username: { - type: 'string' as const, - optional: false as const, nullable: false as const - }, - host: { - type: 'string' as const, - optional: false as const, nullable: true as const - }, - avatarUrl: { - type: 'string' as const, - optional: false as const, nullable: false as const, - format: 'url' - }, - avatarBlurhash: { - type: 'string' as const, - optional: false as const, nullable: true as const - }, - avatarColor: { - type: 'any' as const, - optional: false as const, nullable: true as const - }, - emojis: { - type: 'array' as const, - optional: false as const, nullable: false as const, - items: { - type: 'object' as const, - nullable: false as const, optional: false as const, - properties: { - name: { - type: 'string' as const, - nullable: false as const, optional: false as const - }, - host: { - type: 'string' as const, - nullable: true as const, optional: false as const - }, - url: { - type: 'string' as const, - nullable: false as const, optional: false as const, - format: 'url' - }, - aliases: { - type: 'array' as const, - nullable: false as const, optional: false as const, - items: { - type: 'string' as const, - nullable: false as const, optional: false as const - } - } - } - } - } - } - } + ref: 'User', + }, }; export default define(meta, async (ps, user) => { |