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 1de2795b30ed25ac1c38793beb67095d4eaf776b
parent 05e385639d3413daf0554987a5f02e54b9c4cb7f
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));