Exclude instances with more than 30% of active users (#359)

* Exclude instances with more than 30% of active users

* prettier

* submodules

* reorder
This commit is contained in:
Nutomic 2024-09-11 15:29:35 +02:00 committed by GitHub
parent 67b4f84b16
commit 9d69928514
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 472 additions and 359 deletions

View file

@ -65,7 +65,14 @@ try {
.filter(
i =>
i.site_info.site_view.counts.users_active_month > min_monthly_users,
);
)
// Exclude large instances which represent more than 30% of all active users
.filter(i => {
let active_users_percent =
i.site_info.site_view.counts.users_active_month /
stats.users_active_month;
return active_users_percent < 0.3;
});
let stats2 = {
stats: stats,

View file

@ -10,7 +10,8 @@
"hexbear.net",
"discuss.online",
"feddit.org",
"lemmings.world"
"lemmings.world",
"lemmy.world"
],
"exclude": [
"lemmy.glasgow.social",
@ -23,7 +24,6 @@
"bakchodi.org",
"lemmy.comfysnug.space",
"rqd2.net",
"test.hexbear.net",
"lemmy.world"
"test.hexbear.net"
]
}

View file

@ -201,6 +201,11 @@ export const RECOMMENDED_INSTANCES: RecommendedInstance[] = [
languages: ["en"],
topics: [GENERAL],
},
{
domain: "lemmy.world",
languages: ["en"],
topics: [GENERAL],
},
{
domain: "startrek.website",
languages: ["en"],

File diff suppressed because it is too large Load diff