fix: context document ids and next
This commit is contained in:
parent
ddb86718d1
commit
c19b8e0f5b
1 changed files with 2 additions and 2 deletions
|
@ -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)),
|
||||
|
|
Loading…
Reference in a new issue