From 30ecfd81fa99e800660d6c46631711428a00a995 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Mon, 14 Aug 2023 16:40:33 +0200 Subject: [PATCH] httpd: Allow removing of reactions from issues Signed-off-by: Sebastian Martinez --- radicle-httpd/src/api/v1/projects.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/radicle-httpd/src/api/v1/projects.rs b/radicle-httpd/src/api/v1/projects.rs index 6addd4d1c..9b930e728 100644 --- a/radicle-httpd/src/api/v1/projects.rs +++ b/radicle-httpd/src/api/v1/projects.rs @@ -553,8 +553,12 @@ async fn issue_update_handler( return Err(Error::BadRequest("`replyTo` missing".to_owned())); } } - issue::Action::CommentReact { id, reaction, .. } => { - issue.react(id, reaction, &signer)?; + issue::Action::CommentReact { + id, + reaction, + active, + } => { + issue.react(id, reaction, active, &signer)?; } issue::Action::CommentEdit { .. } => { todo!();