From 597dee934d94948b7ae20561483007f39bc8d1ba Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 23 Apr 2024 17:21:32 +0200 Subject: [PATCH] fix: try hiding locked activities for public objs idk if this works but basically when there's a public object from a private activity, the query joins the activity anyway because it uses the object relation, try using the addressing relation and see what comes out --- src/model/addressing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/addressing.rs b/src/model/addressing.rs index 3837b097..95b410b3 100644 --- a/src/model/addressing.rs +++ b/src/model/addressing.rs @@ -156,7 +156,7 @@ impl Entity { .distinct() .select_only() .join(sea_orm::JoinType::InnerJoin, Relation::Object.def()) - .join(sea_orm::JoinType::LeftJoin, crate::model::object::Relation::Activity.def()) + .join(sea_orm::JoinType::LeftJoin, Relation::Activity.def()) .order_by(crate::model::object::Column::Published, Order::Desc); for col in crate::model::object::Column::iter() {