mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-23 21:01:20 +00:00
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:
parent
67b4f84b16
commit
9d69928514
4 changed files with 472 additions and 359 deletions
|
@ -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,
|
||||
|
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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
Loading…
Reference in a new issue