fix error when searching without a specified host
This commit is contained in:
parent
36545aea8b
commit
c8bb7b9816
2 changed files with 3 additions and 3 deletions
|
@ -112,7 +112,7 @@ const fileTypes = {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Make sure to regenerate misskey-js and check search.note.vue after changing these
|
// 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];
|
export type FileTypeCategory = typeof fileTypeCategories[number];
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
@ -217,7 +217,7 @@ export class SearchService {
|
||||||
userId?: MiNote['userId'] | null;
|
userId?: MiNote['userId'] | null;
|
||||||
channelId?: MiNote['channelId'] | null;
|
channelId?: MiNote['channelId'] | null;
|
||||||
host?: string | null;
|
host?: string | null;
|
||||||
filetype?: FileTypeCategory | null;
|
filetype?: FileTypeCategory;
|
||||||
order?: string | null;
|
order?: string | null;
|
||||||
disableMeili?: boolean | null;
|
disableMeili?: boolean | null;
|
||||||
}, pagination: {
|
}, pagination: {
|
||||||
|
|
|
@ -25030,7 +25030,7 @@ export type operations = {
|
||||||
/** @description The local host is represented with `.`. */
|
/** @description The local host is represented with `.`. */
|
||||||
host?: string;
|
host?: string;
|
||||||
/** @enum {string|null} */
|
/** @enum {string|null} */
|
||||||
filetype?: 'image' | 'video' | 'audio' | 'module' | 'flash';
|
filetype?: 'image' | 'video' | 'audio' | 'module' | 'flash' | null;
|
||||||
/**
|
/**
|
||||||
* Format: misskey:id
|
* Format: misskey:id
|
||||||
* @default null
|
* @default null
|
||||||
|
|
Loading…
Add table
Reference in a new issue