Support pleromo registrations format

This commit is contained in:
asonix 2020-07-10 18:34:24 -05:00
parent e2feeecbb3
commit 741c4efc0e

View file

@ -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>,
}