Skip to content

Commit

Permalink
fix(route): kemono/discord (#13598)
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsKaa authored Oct 21, 2023
1 parent 7410aaa commit b528368
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/v2/kemono/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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,
});

Expand Down

0 comments on commit b528368

Please sign in to comment.