1
0
Fork 0
forked from alemi/upub

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