diff options
| author | zyoshoka <107108195+zyoshoka@users.noreply.github.com> | 2025-05-25 08:38:45 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-25 08:38:45 +0900 |
| commit | ed3a844f5d7a9fa8e041a7c761e80d1e2bc316f2 (patch) | |
| tree | 41ea5cfdfa91245b3ffa53c31cb2b1dfcb3e0c3e /packages | |
| parent | fix(frontend): リアクション削除イベントのコンディション... (diff) | |
| download | misskey-ed3a844f5d7a9fa8e041a7c761e80d1e2bc316f2.tar.gz misskey-ed3a844f5d7a9fa8e041a7c761e80d1e2bc316f2.tar.bz2 misskey-ed3a844f5d7a9fa8e041a7c761e80d1e2bc316f2.zip | |
fix(backend): add response schema for `notes/show-partial-bulk` endpoint (#16093)
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/backend/src/server/api/endpoints/notes/show-partial-bulk.ts | 21 | ||||
| -rw-r--r-- | packages/misskey-js/src/autogen/types.ts | 10 |
2 files changed, 29 insertions, 2 deletions
diff --git a/packages/backend/src/server/api/endpoints/notes/show-partial-bulk.ts b/packages/backend/src/server/api/endpoints/notes/show-partial-bulk.ts index 87b368e17e..e102bc1d4a 100644 --- a/packages/backend/src/server/api/endpoints/notes/show-partial-bulk.ts +++ b/packages/backend/src/server/api/endpoints/notes/show-partial-bulk.ts @@ -19,7 +19,26 @@ export const meta = { optional: false, nullable: false, items: { type: 'object', - optional: false, nullable: false, + properties: { + id: { + type: 'string', + optional: false, nullable: false, + }, + reactions: { + type: 'object', + optional: false, nullable: false, + additionalProperties: { + type: 'number', + }, + }, + reactionEmojis: { + type: 'object', + optional: false, nullable: false, + additionalProperties: { + type: 'string', + }, + }, + }, }, }, diff --git a/packages/misskey-js/src/autogen/types.ts b/packages/misskey-js/src/autogen/types.ts index c0d1242aaf..abd3a42628 100644 --- a/packages/misskey-js/src/autogen/types.ts +++ b/packages/misskey-js/src/autogen/types.ts @@ -25919,7 +25919,15 @@ export type operations = { /** @description OK (with results) */ 200: { content: { - 'application/json': Record<string, never>[]; + 'application/json': { + id: string; + reactions: { + [key: string]: number; + }; + reactionEmojis: { + [key: string]: string; + }; + }[]; }; }; /** @description Client error */ |