mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-21 20:01:16 +00:00
Dont list instances with few active users
This commit is contained in:
parent
53d24a6d24
commit
d78b3d0ffb
1 changed files with 7 additions and 0 deletions
|
@ -4,6 +4,8 @@ import { i18n } from "../i18next";
|
||||||
import { instance_stats } from "../instance_stats";
|
import { instance_stats } from "../instance_stats";
|
||||||
import { numToSI } from "../utils";
|
import { numToSI } from "../utils";
|
||||||
|
|
||||||
|
const min_monthly_users = 5;
|
||||||
|
|
||||||
export class Instances extends Component<any, any> {
|
export class Instances extends Component<any, any> {
|
||||||
constructor(props: any, context: any) {
|
constructor(props: any, context: any) {
|
||||||
super(props, context);
|
super(props, context);
|
||||||
|
@ -91,6 +93,11 @@ export class Instances extends Component<any, any> {
|
||||||
i =>
|
i =>
|
||||||
i.site_info.site_view.local_site.registration_mode != "closed"
|
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 => {
|
.map(instance => {
|
||||||
let domain = instance.domain;
|
let domain = instance.domain;
|
||||||
let users_active_month =
|
let users_active_month =
|
||||||
|
|
Loading…
Reference in a new issue