forked from alemi/upub
fix: find objects not activities
This commit is contained in:
parent
ab5d0cb61a
commit
629990fee8
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ pub async fn view(
|
||||||
ctx.oid(id.clone())
|
ctx.oid(id.clone())
|
||||||
};
|
};
|
||||||
|
|
||||||
let result = model::addressing::Entity::find_activities()
|
let result = model::addressing::Entity::find_objects()
|
||||||
.filter(model::object::Column::Id.eq(&oid))
|
.filter(model::object::Column::Id.eq(&oid))
|
||||||
.filter(auth.filter_condition())
|
.filter(auth.filter_condition())
|
||||||
.into_model::<EmbeddedActivity>()
|
.into_model::<EmbeddedActivity>()
|
||||||
|
|
Loading…
Reference in a new issue