mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-10 06:54:12 +00:00
Correct logic to meet join-lemmy requirement, don't have closed signups. Allows Open and Applications. (#3761)
Co-authored-by: Josh Bernardini <josh.bernardini@cologix.com>
This commit is contained in:
parent
963d04b352
commit
6ed2ddf76d
1 changed files with 3 additions and 1 deletions
|
@ -48,7 +48,9 @@ async fn node_info(context: web::Data<LemmyContext>) -> Result<HttpResponse, Err
|
|||
} else {
|
||||
None
|
||||
};
|
||||
let open_registrations = Some(site_view.local_site.registration_mode == RegistrationMode::Open);
|
||||
// Since there are 3 registration options,
|
||||
// we need to set open_registrations as true if RegistrationMode is not Closed.
|
||||
let open_registrations = Some(site_view.local_site.registration_mode != RegistrationMode::Closed);
|
||||
let json = NodeInfo {
|
||||
version: Some("2.0".to_string()),
|
||||
software: Some(NodeInfoSoftware {
|
||||
|
|
Loading…
Reference in a new issue