summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/SearchService.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/backend/src/core/SearchService.ts')
-rw-r--r--packages/backend/src/core/SearchService.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/core/SearchService.ts b/packages/backend/src/core/SearchService.ts
index a8c6ac61f3..e60c75c6cc 100644
--- a/packages/backend/src/core/SearchService.ts
+++ b/packages/backend/src/core/SearchService.ts
@@ -112,7 +112,7 @@ const fileTypes = {
};
// Make sure to regenerate misskey-js and check search.note.vue after changing these
-export const fileTypeCategories = ['image', 'video', 'audio', 'module', 'flash'] as const;
+export const fileTypeCategories = ['image', 'video', 'audio', 'module', 'flash', null] as const;
export type FileTypeCategory = typeof fileTypeCategories[number];
@Injectable()
@@ -217,7 +217,7 @@ export class SearchService {
userId?: MiNote['userId'] | null;
channelId?: MiNote['channelId'] | null;
host?: string | null;
- filetype?: FileTypeCategory | null;
+ filetype?: FileTypeCategory;
order?: string | null;
disableMeili?: boolean | null;
}, pagination: {