fix: context document ids and next

This commit is contained in:
əlemi 2024-06-06 23:53:28 +02:00
parent ddb86718d1
commit c19b8e0f5b
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -17,7 +17,7 @@ pub async fn get(
.count(ctx.db())
.await?;
crate::builders::collection(&format!("{context}/context"), Some(count))
crate::builders::collection(&upub::url!(ctx, "/objects/{id}/context"), Some(count))
}
pub async fn page(
@ -29,7 +29,7 @@ pub async fn page(
let context = ctx.oid(&id);
crate::builders::paginate(
format!("{context}/context/page"),
upub::url!(ctx, "/objects/{id}/context/page"),
Condition::all()
.add(auth.filter_condition())
.add(model::object::Column::Context.eq(context)),