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
This commit is contained in:
əlemi 2024-04-23 17:21:32 +02:00
parent 8a6c05f4fb
commit 597dee934d
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -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() {