From b528368f1c2940e4f76fd202d868deacb783731f Mon Sep 17 00:00:00 2001 From: Kaa <31796925+ItsKaa@users.noreply.github.com> Date: Sat, 21 Oct 2023 16:24:38 +0000 Subject: [PATCH] fix(route): kemono/discord (#13598) --- lib/v2/kemono/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/v2/kemono/index.js b/lib/v2/kemono/index.js index 6fde65b552d1db..73f0251fde9606 100644 --- a/lib/v2/kemono/index.js +++ b/lib/v2/kemono/index.js @@ -9,7 +9,7 @@ module.exports = async (ctx) => { const id = ctx.params.id; const rootUrl = 'https://kemono.party'; - const apiUrl = `${rootUrl}/api/discord/channels/lookup?q=${id}`; + const apiUrl = `${rootUrl}/api/v1/discord/channel/lookup/${id}`; const currentUrl = `${rootUrl}/${source ? `${source}/${source === 'discord' ? `server/${id}` : `user/${id}`}` : 'posts'}`; const headers = { @@ -33,7 +33,7 @@ module.exports = async (ctx) => { ctx.cache.tryGet(channel.id, async () => { const channelResponse = await got({ method: 'get', - url: `${rootUrl}/api/discord/channel/${channel.id}?skip=0`, + url: `${rootUrl}/api/v1/discord/channel/${channel.id}?o=0`, headers, });