ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix index search
Chocobozzze5abb482c303
diff --git a/server/controllers/api/search.ts b/server/controllers/api/search.tsindex 317b24fe99..57357b1e89 100644--- a/server/controllers/api/search.ts+++ b/server/controllers/api/search.ts@@ -94,7 +94,7 @@ async function searchVideoChannelsIndex (query: VideoChannelsSearchQuery, res: etry {logger.debug('Doing video channels search index request on %s.', url, { body })- const searchIndexResult = await doJSONRequest<ResultList<VideoChannel>>(url, { json: body })+ const { body: searchIndexResult } = await doJSONRequest<ResultList<VideoChannel>>(url, { method: 'POST', json: body })return res.json(searchIndexResult)} catch (err) {@@ -186,7 +186,7 @@ async function searchVideosIndex (query: VideosSearchQuery, res: express.Responstry {logger.debug('Doing videos search index request on %s.', url, { body })- const searchIndexResult = await doJSONRequest<ResultList<Video>>(url, { json: body })+ const { body: searchIndexResult } = await doJSONRequest<ResultList<Video>>(url, { method: 'POST', json: body })return res.json(searchIndexResult)} catch (err) {