Skip to content

Commit

Permalink
Add disabled zaps to registration check endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyGiorgio committed Apr 12, 2024
1 parent 6352e51 commit 086d99a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ pub async fn check_pubkey(
pub struct RegistrationInfo {
pub name: Option<String>,
pub federation_id: Option<FederationId>,
pub disabled_zaps: bool,
}

pub async fn check_registration_info(
Expand Down Expand Up @@ -122,6 +123,7 @@ pub async fn check_registration_info(
"FederationId invalid".to_string(),
)
})?),
disabled_zaps: u.disabled_zaps,
}))
}
Ok(None) => {
Expand All @@ -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)),
Expand Down

0 comments on commit 086d99a

Please sign in to comment.