From c19b8e0f5bb027b000af64b6ec5da82fa39f98d6 Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 6 Jun 2024 23:53:28 +0200 Subject: [PATCH] fix: context document ids and next --- upub/routes/src/activitypub/object/context.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upub/routes/src/activitypub/object/context.rs b/upub/routes/src/activitypub/object/context.rs index 6cceb60c..bfbdaa31 100644 --- a/upub/routes/src/activitypub/object/context.rs +++ b/upub/routes/src/activitypub/object/context.rs @@ -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)),