client/contributor list: refine filtering

This commit is contained in:
Adorian Doran
2026-03-22 10:25:35 +02:00
parent 0525114036
commit 8d5e82fa5e

View File

@@ -28,8 +28,8 @@ export default async function getContributors() {
function getList(contributorInfo: any[]) {
return contributorInfo
// Filter out bots and private profiles
.filter((c) => c.type === "User" && c.user_view_type === "public" && !BOTS.includes(c.login))
// Filter out bots
.filter((c) => c.type === "User" && !BOTS.includes(c.login))
// Sort by the commit count. Honorific contributors are always first.
.sort(contributorOrderer)
.map((c) => {return {