Instance with registration applications active shouldnt count as open

This commit is contained in:
Felix Ableitner 2022-01-26 19:12:51 +01:00
parent 1c5c02e1bf
commit 205c9403e7

View file

@ -55,7 +55,7 @@ async fn node_info(context: web::Data<LemmyContext>) -> Result<HttpResponse, Err
local_posts: site_view.counts.posts,
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))