- // regstration applications are now enabled by default, need to disable them
- await alpha.client.editSite({ require_application: false, auth: alpha.auth});
- await beta.client.editSite({ require_application: false, auth: beta.auth});
- await gamma.client.editSite({ require_application: false, auth: gamma.auth});
- await delta.client.editSite({ require_application: false, auth: delta.auth});
- await epsilon.client.editSite({ require_application: false, auth: epsilon.auth});
+ // Registration applications are now enabled by default, need to disable them
+ let editSiteForm = new EditSite({
+ name: None,
+ sidebar: None,
+ description: None,
+ icon: None,
+ banner: None,
+ enable_downvotes: None,
+ open_registration: None,
+ enable_nsfw: None,
+ community_creation_admin_only: None,
+ require_email_verification: None,
+ require_application: Some(false),
+ application_question: None,
+ private_instance: None,
+ default_theme: None,
+ legal_information: None,
+ default_post_listing_type: None,
+ auth: "",
+ });
+ editSiteForm.auth = alpha.auth.unwrap();
+ await alpha.client.editSite(editSiteForm);
+ editSiteForm.auth = beta.auth.unwrap();
+ await beta.client.editSite(editSiteForm);
+ editSiteForm.auth = gamma.auth.unwrap();
+ await gamma.client.editSite(editSiteForm);
+ editSiteForm.auth = delta.auth.unwrap();
+ await delta.client.editSite(editSiteForm);
+ editSiteForm.auth = epsilon.auth.unwrap();
+ await epsilon.client.editSite(editSiteForm);