From 086d99a67d7081cbaa8e461e2e9d57fd1ab7cbf2 Mon Sep 17 00:00:00 2001 From: Tony Giorgio Date: Thu, 11 Apr 2024 23:01:50 -0500 Subject: [PATCH] Add disabled zaps to registration check endpoint --- src/routes.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/routes.rs b/src/routes.rs index 8b301ff..a446cf4 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -82,6 +82,7 @@ pub async fn check_pubkey( pub struct RegistrationInfo { pub name: Option, pub federation_id: Option, + pub disabled_zaps: bool, } pub async fn check_registration_info( @@ -122,6 +123,7 @@ pub async fn check_registration_info( "FederationId invalid".to_string(), ) })?), + disabled_zaps: u.disabled_zaps, })) } Ok(None) => { @@ -130,6 +132,7 @@ pub async fn check_registration_info( Ok(Json(RegistrationInfo { name: None, federation_id: None, + disabled_zaps: false, })) } Err(e) => Err(handle_anyhow_error("check_pubkey", e)),