From 01d0e4df8555a9df6e8baf1d61366af6c1541a42 Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 19 Apr 2024 06:57:01 +0200 Subject: [PATCH] fix: context and replies and follow___ /page --- src/routes/activitypub/context.rs | 2 +- src/routes/activitypub/object/replies.rs | 2 +- src/routes/activitypub/user/following.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/activitypub/context.rs b/src/routes/activitypub/context.rs index e29024e..b188406 100644 --- a/src/routes/activitypub/context.rs +++ b/src/routes/activitypub/context.rs @@ -51,7 +51,7 @@ pub async fn page( Ok(JsonLD( ctx.ap_collection_page( - &url!(ctx, "/context/{id}"), + &url!(ctx, "/context/{id}/page"), offset, limit, items .into_iter() diff --git a/src/routes/activitypub/object/replies.rs b/src/routes/activitypub/object/replies.rs index d55a610..383a2e8 100644 --- a/src/routes/activitypub/object/replies.rs +++ b/src/routes/activitypub/object/replies.rs @@ -51,7 +51,7 @@ pub async fn page( Ok(JsonLD( ctx.ap_collection_page( - &url!(ctx, "/objects/{id}/replies"), + &url!(ctx, "/objects/{id}/replies/page"), offset, limit, items .into_iter() diff --git a/src/routes/activitypub/user/following.rs b/src/routes/activitypub/user/following.rs index 65ed3ad..27ca37e 100644 --- a/src/routes/activitypub/user/following.rs +++ b/src/routes/activitypub/user/following.rs @@ -48,7 +48,7 @@ pub async fn page( Ok(following) => { Ok(JsonLD( ctx.ap_collection_page( - &url!(ctx, "/users/{id}/{follow___}"), + &url!(ctx, "/users/{id}/{follow___}/page"), offset, limit, following.into_iter().map(serde_json::Value::String).collect()