[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:
1 parent
781491e643
commit
784f0169e2
11 files changed
+323
-215
No files matched your search
@@ -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,
|
||||
);
|
||||
Reference in new issue
Block a user