diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-06 23:23:54 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-06 23:23:54 +0900 |
| commit | f7e9725e59dd241b11fda729cc5c96a64d7e2545 (patch) | |
| tree | ca09dd961685d789efa53dad8b6eba240b643eac /src/server/api/endpoints/following/requests | |
| parent | Merge branch 'develop' (diff) | |
| parent | 12.74.0 (diff) | |
| download | misskey-f7e9725e59dd241b11fda729cc5c96a64d7e2545.tar.gz misskey-f7e9725e59dd241b11fda729cc5c96a64d7e2545.tar.bz2 misskey-f7e9725e59dd241b11fda729cc5c96a64d7e2545.zip | |
Merge branch 'develop'
Diffstat (limited to 'src/server/api/endpoints/following/requests')
| -rw-r--r-- | src/server/api/endpoints/following/requests/cancel.ts | 6 | ||||
| -rw-r--r-- | src/server/api/endpoints/following/requests/list.ts | 28 |
2 files changed, 33 insertions, 1 deletions
diff --git a/src/server/api/endpoints/following/requests/cancel.ts b/src/server/api/endpoints/following/requests/cancel.ts index a12e1f76b6..ef21ee4f27 100644 --- a/src/server/api/endpoints/following/requests/cancel.ts +++ b/src/server/api/endpoints/following/requests/cancel.ts @@ -40,6 +40,12 @@ export const meta = { code: 'FOLLOW_REQUEST_NOT_FOUND', id: '089b125b-d338-482a-9a09-e2622ac9f8d4' }, + }, + + res: { + type: 'object' as const, + optional: false as const, nullable: false as const, + ref: 'User' } }; diff --git a/src/server/api/endpoints/following/requests/list.ts b/src/server/api/endpoints/following/requests/list.ts index 78f937bb0b..4afd448516 100644 --- a/src/server/api/endpoints/following/requests/list.ts +++ b/src/server/api/endpoints/following/requests/list.ts @@ -11,7 +11,33 @@ export const meta = { requireCredential: true as const, - kind: 'read:following' + kind: 'read:following', + + res: { + type: 'array' as const, + optional: false as const, nullable: false as const, + items: { + 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' + }, + follower: { + type: 'object' as const, + optional: false as const, nullable: false as const, + ref: 'User' + }, + followee: { + type: 'object' as const, + optional: false as const, nullable: false as const, + ref: 'User' + } + } + } + } }; export default define(meta, async (ps, user) => { |