fix: also context gives full objects

would clear local cached image oof
This commit is contained in:
əlemi 2024-04-22 00:16:40 +02:00
parent 96524dbd6f
commit e8dd15f8bd
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

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