radicle: Allow to clear issue descriptions and comments

Previously it was possible to create an issue with an empty description
(i.e. an empty "root" comment), and also to change it later to a
non-empty string, however it was not possible to clear it again.
This commit is contained in:
Defelo
2025-09-23 19:52:54 +02:00
parent ec22c94321
commit ae01a42434
-3
View File
@@ -532,9 +532,6 @@ pub fn edit<L>(
body: String,
embeds: Vec<Embed<Uri>>,
) -> Result<(), Error> {
if body.is_empty() {
return Err(Error::Edit(id));
}
debug_assert!(!thread.timeline.contains(&id));
thread.timeline.push(id);