diff options
Diffstat (limited to 'rust/src')
-rw-r--r-- | rust/src/api_entity_crud.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/src/api_entity_crud.rs b/rust/src/api_entity_crud.rs index eb7a3ac9..6474ba6f 100644 --- a/rust/src/api_entity_crud.rs +++ b/rust/src/api_entity_crud.rs @@ -1014,6 +1014,10 @@ impl EntityCrud for ReleaseEntity { } fn db_expand(&mut self, conn: &DbConn, expand: ExpandFlags) -> Result<()> { + // Don't expand deleted entities + if self.state == Some("deleted".to_string()) { + return Ok(()) + } if expand.files { let ident = match &self.ident { None => bail!("Can't expand files on a non-concrete entity"), |