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:
parent
8a6c05f4fb
commit
597dee934d
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ impl Entity {
|
||||||
.distinct()
|
.distinct()
|
||||||
.select_only()
|
.select_only()
|
||||||
.join(sea_orm::JoinType::InnerJoin, Relation::Object.def())
|
.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);
|
.order_by(crate::model::object::Column::Published, Order::Desc);
|
||||||
|
|
||||||
for col in crate::model::object::Column::iter() {
|
for col in crate::model::object::Column::iter() {
|
||||||
|
|
Loading…
Reference in a new issue