[Glitch] Implements tag suggestions for collections topic field

Port 8bce0b99d4 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
diondiondion authored and Claire committed 2026-03-20 18:15:00 +01:00
1 parent 781491e643
commit 784f0169e2
11 files changed
+323 -215

No files matched your search

+19 -10
View File
@@ -4,13 +4,22 @@ import type {
ApiSearchResultsJSON,
} from 'flavours/glitch/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,
);