Implements tag suggestions for collections topic field (#38307)
This commit is contained in:
1 parent
6507a61d30
commit
8bce0b99d4
11 files changed
+323
-215
No files matched your search
@@ -4,13 +4,22 @@ import type {
|
||||
ApiSearchResultsJSON,
|
||||
} from 'mastodon/api_types/search';
|
||||
|
||||
export const apiGetSearch = (params: {
|
||||
q: string;
|
||||
resolve?: boolean;
|
||||
type?: ApiSearchType;
|
||||
limit?: number;
|
||||
offset?: number;
|
||||
}) =>
|
||||
apiRequestGet<ApiSearchResultsJSON>('v2/search', {
|
||||
...params,
|
||||
});
|
||||
export const apiGetSearch = (
|
||||
params: {
|
||||
q: string;
|
||||
resolve?: boolean;
|
||||
type?: ApiSearchType;
|
||||
limit?: number;
|
||||
offset?: number;
|
||||
},
|
||||
options: {
|
||||
signal?: AbortSignal;
|
||||
} = {},
|
||||
) =>
|
||||
apiRequestGet<ApiSearchResultsJSON>(
|
||||
'v2/search',
|
||||
{
|
||||
...params,
|
||||
},
|
||||
options,
|
||||
);
|
||||
Reference in new issue
Block a user