mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-01 14:57:14 +08:00
fix(modrinth): avoid duplicating author id (#15027)
This commit is contained in:
@@ -93,7 +93,7 @@ async function handler(ctx: Context) {
|
||||
}).json<Version[]>();
|
||||
const authors = await customGot(`https://api.modrinth.com/v2/users`, {
|
||||
searchParams: {
|
||||
ids: JSON.stringify(versions.map((it) => it.author_id)),
|
||||
ids: JSON.stringify([...new Set(versions.map((it) => it.author_id))]),
|
||||
},
|
||||
}).json<Author[]>();
|
||||
const groupedAuthors = <Record<string, Author>>{};
|
||||
|
||||
Reference in New Issue
Block a user