Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
radicle: Allow to clear issue descriptions
Defelo committed 7 months ago
commit fd6d78db61ccd308d47647c69cc9941de7444ea5
parent e02ee603deeb24e1eec1b4bb83580cd453bc59ba
1 file changed +1 -1
modified crates/radicle/src/cob/thread.rs
@@ -532,7 +532,7 @@ pub fn edit<L>(
    body: String,
    embeds: Vec<Embed<Uri>>,
) -> Result<(), Error> {
-
    if body.is_empty() {
+
    if body.is_empty() && !thread.root().is_some_and(|(&root, _)| comment == root) {
        return Err(Error::Edit(id));
    }
    debug_assert!(!thread.timeline.contains(&id));