Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
radicle: rename resolved to is_resolved
Fintan Halpenny committed 2 years ago
commit a1b41542b8274d9d17d4da03b111d3b4a80f1576
parent 25ff5876ec43d2b1105a91a58a71c5dcbc89e136
2 files changed +4 -4
modified radicle-httpd/src/api/json.rs
@@ -213,7 +213,7 @@ fn issue_comment(id: &CommentId, comment: &Comment, aliases: &impl AliasStore) -
        ).collect::<Vec<_>>(),
        "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(),
    })
}

modified radicle/src/cob/thread.rs
@@ -211,7 +211,7 @@ impl<L> Comment<L> {
    }

    /// Get comment resolution status.
-
    pub fn resolved(&self) -> bool {
+
    pub fn is_resolved(&self) -> bool {
        self.resolved
    }