diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-05-07 11:59:06 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-05-07 11:59:06 +0900 |
| commit | 29a84230b0d3216442c955599485be5f6511aa78 (patch) | |
| tree | c99b58fa0358e3b3ae15c07d9743298d4928479a /packages/backend/src/server/api/endpoints | |
| parent | fix test (diff) | |
| download | misskey-29a84230b0d3216442c955599485be5f6511aa78.tar.gz misskey-29a84230b0d3216442c955599485be5f6511aa78.tar.bz2 misskey-29a84230b0d3216442c955599485be5f6511aa78.zip | |
enhance(backend): SearchService.searchNoteでhost指定対応
Diffstat (limited to 'packages/backend/src/server/api/endpoints')
| -rw-r--r-- | packages/backend/src/server/api/endpoints/notes/search.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/server/api/endpoints/notes/search.ts b/packages/backend/src/server/api/endpoints/notes/search.ts index 990ba526d9..f6385400c3 100644 --- a/packages/backend/src/server/api/endpoints/notes/search.ts +++ b/packages/backend/src/server/api/endpoints/notes/search.ts @@ -42,8 +42,7 @@ export const paramDef = { offset: { type: 'integer', default: 0 }, host: { type: 'string', - nullable: true, - description: 'The local host is represented with `null`.', + description: 'The local host is represented with `.`.', }, userId: { type: 'string', format: 'misskey:id', nullable: true, default: null }, channelId: { type: 'string', format: 'misskey:id', nullable: true, default: null }, @@ -73,6 +72,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { const notes = await this.searchService.searchNote(ps.query, me, { userId: ps.userId, channelId: ps.channelId, + host: ps.host, }, { untilId: ps.untilId, sinceId: ps.sinceId, |