diff --git a/radicle-httpd/src/api/json.rs b/radicle-httpd/src/api/json.rs index 0902cdae..ab955e20 100644 --- a/radicle-httpd/src/api/json.rs +++ b/radicle-httpd/src/api/json.rs @@ -213,7 +213,7 @@ fn issue_comment(id: &CommentId, comment: &Comment, aliases: &impl AliasStore) - ).collect::>(), "timestamp": comment.timestamp().as_secs(), "replyTo": comment.reply_to(), - "resolved": comment.resolved(), + "resolved": comment.is_resolved(), }) } @@ -235,7 +235,7 @@ fn patch_comment( "timestamp": comment.timestamp().as_secs(), "replyTo": comment.reply_to(), "location": comment.location(), - "resolved": comment.resolved(), + "resolved": comment.is_resolved(), }) } @@ -257,7 +257,7 @@ fn review_comment( "timestamp": comment.timestamp().as_secs(), "replyTo": comment.reply_to(), "location": comment.location(), - "resolved": comment.resolved(), + "resolved": comment.is_resolved(), }) } diff --git a/radicle/src/cob/thread.rs b/radicle/src/cob/thread.rs index 0ed50d4d..ff3c78ea 100644 --- a/radicle/src/cob/thread.rs +++ b/radicle/src/cob/thread.rs @@ -211,7 +211,7 @@ impl Comment { } /// Get comment resolution status. - pub fn resolved(&self) -> bool { + pub fn is_resolved(&self) -> bool { self.resolved }