enhance(backend): SearchService.searchNoteでhost指定対応
This commit is contained in:
		@@ -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,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user