mirror of https://github.com/LemmyNet/lemmy.git
Instance with registration applications active shouldnt count as open
parent
1c5c02e1bf
commit
205c9403e7
|
@ -55,7 +55,7 @@ async fn node_info(context: web::Data<LemmyContext>) -> Result<HttpResponse, Err
|
||||||
local_posts: site_view.counts.posts,
|
local_posts: site_view.counts.posts,
|
||||||
local_comments: site_view.counts.comments,
|
local_comments: site_view.counts.comments,
|
||||||
},
|
},
|
||||||
open_registrations: site_view.site.open_registration,
|
open_registrations: site_view.site.open_registration && !site_view.site.require_application,
|
||||||
};
|
};
|
||||||
|
|
||||||
Ok(HttpResponse::Ok().json(json))
|
Ok(HttpResponse::Ok().json(json))
|
||||||
|
|
Loading…
Reference in New Issue