Implements tag suggestions for collections topic field (#38307)

This commit is contained in:
diondiondion authored and GitHub committed 2026-03-20 13:48:06 +00:00
1 parent 6507a61d30
commit 8bce0b99d4
11 files changed
+323 -215

No files matched your search

+19 -10
View File
@@ -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,
);