Instance with registration applications active shouldnt count as open

open-registration-application
Felix Ableitner 2022-01-26 19:12:51 +01:00
parent 1c5c02e1bf
commit 205c9403e7
1 changed files with 1 additions and 1 deletions

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))