From 864f0022e24d03fa1d716aef4fe40a9efe9e4e76 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Wed, 7 Dec 2022 12:16:00 +0100 Subject: [PATCH] Remove delegate names from identity doc We are working on other mechanisms to help identify keys, and this is just redundant. Also update some of the CLI examples to create a canonical example for documentation. Signed-off-by: Alexis Sellier --- radicle-httpd/src/api/v1/delegates.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicle-httpd/src/api/v1/delegates.rs b/radicle-httpd/src/api/v1/delegates.rs index c28385b0b..89364523e 100644 --- a/radicle-httpd/src/api/v1/delegates.rs +++ b/radicle-httpd/src/api/v1/delegates.rs @@ -40,7 +40,7 @@ async fn delegates_projects_handler( let Ok((_, head)) = repo.head() else { return None }; let Ok(Doc { payload, delegates, .. }) = repo.project_of(ctx.profile.id()) else { return None }; - if !delegates.iter().any(|d| d.id == delegate) { + if !delegates.iter().any(|d| *d == delegate) { return None; }