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())
|
||||
.await?;
|
||||
|
||||
let mut out = Vec::new();
|
||||
for item in items {
|
||||
out.push(item.ap_filled(ctx.db()).await?);
|
||||
}
|
||||
|
||||
Ok(JsonLD(
|
||||
ctx.ap_collection_page(
|
||||
&url!(ctx, "/context/{id}/page"),
|
||||
offset, limit,
|
||||
items
|
||||
.into_iter()
|
||||
.map(|x| x.object.ap())
|
||||
.collect()
|
||||
offset, limit, out,
|
||||
).ld_context()
|
||||
))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue