1
0
Fork 0
forked from alemi/upub

fix: select_object doesnt return embeddedactivity

This commit is contained in:
əlemi 2024-04-19 05:05:26 +02:00
parent 4883597ee3
commit d7ff6014c4
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 4 additions and 4 deletions

View file

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

View file

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