diff --git a/lib/v2/kemono/index.js b/lib/v2/kemono/index.js index 6fde65b55..73f0251fd 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, });