From: Dessalines Date: Thu, 11 May 2023 19:20:45 +0000 (-0400) Subject: Fixing empty req issue. (#2849) X-Git-Url: http://these/git/%22https:/nerdica.net/photo/contact/80/README.md?a=commitdiff_plain;h=32a5567cbffbc540e19dca61d370b9d078e37d30;p=lemmy.git Fixing empty req issue. (#2849) * Fixing empty req issue. * Forgot skip serializing none. --- diff --git a/crates/api_common/src/person.rs b/crates/api_common/src/person.rs index 857e5203..263fd584 100644 --- a/crates/api_common/src/person.rs +++ b/crates/api_common/src/person.rs @@ -51,11 +51,14 @@ pub struct Register { pub answer: Option, } +#[skip_serializing_none] #[derive(Debug, Serialize, Deserialize, Clone, Default)] #[cfg_attr(feature = "full", derive(TS))] #[cfg_attr(feature = "full", ts(export))] /// Fetches a Captcha item. -pub struct GetCaptcha {} +pub struct GetCaptcha { + pub auth: Option>, +} #[skip_serializing_none] #[derive(Debug, Serialize, Deserialize, Clone)] diff --git a/crates/api_common/src/site.rs b/crates/api_common/src/site.rs index e81186b1..2d3ebbe0 100644 --- a/crates/api_common/src/site.rs +++ b/crates/api_common/src/site.rs @@ -304,11 +304,14 @@ pub struct GetSiteResponse { pub custom_emojis: Vec, } +#[skip_serializing_none] #[derive(Debug, Serialize, Deserialize, Clone)] #[cfg_attr(feature = "full", derive(TS))] #[cfg_attr(feature = "full", ts(export))] /// Fetches the federated instances for your site. -pub struct GetFederatedInstances {} +pub struct GetFederatedInstances { + pub auth: Option>, +} #[skip_serializing_none] #[derive(Debug, Serialize, Deserialize, Clone)]