Support pleromo registrations format
This commit is contained in:
@@ -80,7 +80,7 @@ impl QueryInstance {
|
||||
description,
|
||||
instance.version,
|
||||
instance.registrations,
|
||||
instance.approval_required,
|
||||
instance.approval_required || instance.registrations,
|
||||
)
|
||||
.await?;
|
||||
|
||||
@@ -114,6 +114,9 @@ struct Instance {
|
||||
#[serde(default = "default_approval")]
|
||||
approval_required: bool,
|
||||
|
||||
#[serde(default = "default_approval")]
|
||||
registrations: bool,
|
||||
|
||||
#[serde(rename = "contact_account")]
|
||||
contact: Option<Contact>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user