forked from alemi/upub
fix: also context gives full objects
would clear local cached image oof
This commit is contained in:
parent
96524dbd6f
commit
e8dd15f8bd
1 changed files with 6 additions and 5 deletions
|
@ -51,14 +51,15 @@ pub async fn page(
|
||||||
.all(ctx.db())
|
.all(ctx.db())
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
let mut out = Vec::new();
|
||||||
|
for item in items {
|
||||||
|
out.push(item.ap_filled(ctx.db()).await?);
|
||||||
|
}
|
||||||
|
|
||||||
Ok(JsonLD(
|
Ok(JsonLD(
|
||||||
ctx.ap_collection_page(
|
ctx.ap_collection_page(
|
||||||
&url!(ctx, "/context/{id}/page"),
|
&url!(ctx, "/context/{id}/page"),
|
||||||
offset, limit,
|
offset, limit, out,
|
||||||
items
|
|
||||||
.into_iter()
|
|
||||||
.map(|x| x.object.ap())
|
|
||||||
.collect()
|
|
||||||
).ld_context()
|
).ld_context()
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue