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( .filter(
i => i =>
i.site_info.site_view.counts.users_active_month > min_monthly_users, 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 = { let stats2 = {
stats: stats, stats: stats,

View file

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

View file

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

File diff suppressed because it is too large Load diff