mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-28 21:50:26 +08:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user