From d78b3d0ffbd923a4b0c23424da215cba6b94767a Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 9 Jun 2023 11:45:28 +0200 Subject: [PATCH] Dont list instances with few active users --- src/shared/components/instances.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/shared/components/instances.tsx b/src/shared/components/instances.tsx index f50d5e3..36c3afd 100644 --- a/src/shared/components/instances.tsx +++ b/src/shared/components/instances.tsx @@ -4,6 +4,8 @@ import { i18n } from "../i18next"; import { instance_stats } from "../instance_stats"; import { numToSI } from "../utils"; +const min_monthly_users = 5; + export class Instances extends Component { constructor(props: any, context: any) { super(props, context); @@ -91,6 +93,11 @@ export class Instances extends Component { i => i.site_info.site_view.local_site.registration_mode != "closed" ) + .filter( + i => + i.site_info.site_view.counts.users_active_month > + min_monthly_users + ) .map(instance => { let domain = instance.domain; let users_active_month =