mirror of
https://github.com/zadam/trilium.git
synced 2026-05-07 16:57:20 +02:00
client/contributor list: refine filtering
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user