summaryrefslogtreecommitdiffstats
path: root/rust/src/entity_crud.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/entity_crud.rs')
-rw-r--r--rust/src/entity_crud.rs15
1 files changed, 12 insertions, 3 deletions
diff --git a/rust/src/entity_crud.rs b/rust/src/entity_crud.rs
index f348e8dc..240a7d92 100644
--- a/rust/src/entity_crud.rs
+++ b/rust/src/entity_crud.rs
@@ -1045,6 +1045,9 @@ impl EntityCrud for FileEntity {
}
// Could potentially hit this code path when expanding a redirected entity or bare
// revision. In either case, `self.release_ids` should already be set.
+ let mut hide_flags = HideFlags::none();
+ hide_flags.abstracts = true;
+ hide_flags.refs = true;
if expand.releases && self.release_ids.is_some() {
if let Some(release_ids) = &self.release_ids {
self.releases = Some(
@@ -1054,7 +1057,7 @@ impl EntityCrud for FileEntity {
Ok(ReleaseEntity::db_get(
conn,
FatcatId::from_str(release_id)?,
- HideFlags::none(),
+ hide_flags,
)?)
})
.collect::<Result<Vec<ReleaseEntity>>>()?,
@@ -1245,6 +1248,9 @@ impl EntityCrud for FilesetEntity {
}
// Could potentially hit this code path when expanding a redirected entity or bare
// revision. In either case, `self.release_ids` should already be set.
+ let mut hide_flags = HideFlags::none();
+ hide_flags.abstracts = true;
+ hide_flags.refs = true;
if expand.releases && self.release_ids.is_some() {
if let Some(release_ids) = &self.release_ids {
self.releases = Some(
@@ -1254,7 +1260,7 @@ impl EntityCrud for FilesetEntity {
Ok(ReleaseEntity::db_get(
conn,
FatcatId::from_str(release_id)?,
- HideFlags::none(),
+ hide_flags,
)?)
})
.collect::<Result<Vec<ReleaseEntity>>>()?,
@@ -1482,6 +1488,9 @@ impl EntityCrud for WebcaptureEntity {
}
// Could potentially hit this code path when expanding a redirected entity or bare
// revision. In either case, `self.release_ids` should already be set.
+ let mut hide_flags = HideFlags::none();
+ hide_flags.abstracts = true;
+ hide_flags.refs = true;
if expand.releases && self.release_ids.is_some() {
if let Some(release_ids) = &self.release_ids {
self.releases = Some(
@@ -1491,7 +1500,7 @@ impl EntityCrud for WebcaptureEntity {
Ok(ReleaseEntity::db_get(
conn,
FatcatId::from_str(release_id)?,
- HideFlags::none(),
+ hide_flags,
)?)
})
.collect::<Result<Vec<ReleaseEntity>>>()?,