fix: select_object doesnt return embeddedactivity
This commit is contained in:
parent
4883597ee3
commit
d7ff6014c4
2 changed files with 4 additions and 4 deletions
|
@ -45,7 +45,7 @@ pub async fn page(
|
||||||
.order_by(model::addressing::Column::Published, Order::Desc)
|
.order_by(model::addressing::Column::Published, Order::Desc)
|
||||||
.limit(limit)
|
.limit(limit)
|
||||||
.offset(offset)
|
.offset(offset)
|
||||||
.into_model::<EmbeddedActivity>()
|
.into_model::<model::object::Model>()
|
||||||
.all(ctx.db())
|
.all(ctx.db())
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ pub async fn page(
|
||||||
offset, limit,
|
offset, limit,
|
||||||
items
|
items
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.filter_map(|x| Some(x.object?.ap()))
|
.map(|x| x.ap())
|
||||||
.collect()
|
.collect()
|
||||||
).ld_context()
|
).ld_context()
|
||||||
))
|
))
|
||||||
|
|
|
@ -45,7 +45,7 @@ pub async fn page(
|
||||||
.order_by(model::addressing::Column::Published, Order::Desc)
|
.order_by(model::addressing::Column::Published, Order::Desc)
|
||||||
.limit(limit)
|
.limit(limit)
|
||||||
.offset(offset)
|
.offset(offset)
|
||||||
.into_model::<EmbeddedActivity>()
|
.into_model::<model::object::Model>()
|
||||||
.all(ctx.db())
|
.all(ctx.db())
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ pub async fn page(
|
||||||
offset, limit,
|
offset, limit,
|
||||||
items
|
items
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.filter_map(|x| Some(x.object?.ap()))
|
.map(|x| x.ap())
|
||||||
.collect()
|
.collect()
|
||||||
).ld_context()
|
).ld_context()
|
||||||
))
|
))
|
||||||
|
|
Loading…
Reference in a new issue