mirror of
https://git.asonix.dog/asonix/relay.git
synced 2024-11-20 00:21:03 +00:00
Support pleromo registrations format
This commit is contained in:
parent
e2feeecbb3
commit
741c4efc0e
1 changed files with 4 additions and 1 deletions
|
@ -80,7 +80,7 @@ impl QueryInstance {
|
||||||
description,
|
description,
|
||||||
instance.version,
|
instance.version,
|
||||||
instance.registrations,
|
instance.registrations,
|
||||||
instance.approval_required,
|
instance.approval_required || instance.registrations,
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
@ -114,6 +114,9 @@ struct Instance {
|
||||||
#[serde(default = "default_approval")]
|
#[serde(default = "default_approval")]
|
||||||
approval_required: bool,
|
approval_required: bool,
|
||||||
|
|
||||||
|
#[serde(default = "default_approval")]
|
||||||
|
registrations: bool,
|
||||||
|
|
||||||
#[serde(rename = "contact_account")]
|
#[serde(rename = "contact_account")]
|
||||||
contact: Option<Contact>,
|
contact: Option<Contact>,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue