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 ddee681fa1198c41f65513b6ba095bffd2622a4c
parent ea79dbd0da7b8348c2efe242f586eec094bb4cb9
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));