From 48768b0e1a4f8a148523ac83ca39157fdc234987 Mon Sep 17 00:00:00 2001 From: alemi Date: Sat, 9 Nov 2024 13:33:34 +0100 Subject: [PATCH] fix: oops forgot extra argument here this is really ugly and unintuitive but im working on builder patterns directly in apb so this should get refactored away too soon:tm: --- upub/routes/src/activitypub/actor/following.rs | 3 ++- upub/routes/src/activitypub/actor/notifications.rs | 2 +- upub/routes/src/activitypub/object/context.rs | 2 +- upub/routes/src/activitypub/tags.rs | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/upub/routes/src/activitypub/actor/following.rs b/upub/routes/src/activitypub/actor/following.rs index 4bc30ea..96bd89e 100644 --- a/upub/routes/src/activitypub/actor/following.rs +++ b/upub/routes/src/activitypub/actor/following.rs @@ -119,6 +119,7 @@ pub async fn page( crate::builders::collection_page( &upub::url!(ctx, "/actors/{id}/{follow___}/page"), offset, limit, - following.into_iter().map(serde_json::Value::String).collect() + following.into_iter().map(serde_json::Value::String).collect(), + true ) } diff --git a/upub/routes/src/activitypub/actor/notifications.rs b/upub/routes/src/activitypub/actor/notifications.rs index 8d0d215..1a1f5c0 100644 --- a/upub/routes/src/activitypub/actor/notifications.rs +++ b/upub/routes/src/activitypub/actor/notifications.rs @@ -52,6 +52,6 @@ pub async fn page( .map(|x| x.ap()) .collect(); - crate::builders::collection_page(&upub::url!(ctx, "/actors/{id}/notifications/page"), offset, limit, activities) + crate::builders::collection_page(&upub::url!(ctx, "/actors/{id}/notifications/page"), offset, limit, activities, true) } diff --git a/upub/routes/src/activitypub/object/context.rs b/upub/routes/src/activitypub/object/context.rs index 3cc1751..166a1d7 100644 --- a/upub/routes/src/activitypub/object/context.rs +++ b/upub/routes/src/activitypub/object/context.rs @@ -51,5 +51,5 @@ pub async fn page( .map(|item| item.ap()) .collect(); - crate::builders::collection_page(&id, offset, limit, items) + crate::builders::collection_page(&id, offset, limit, items, true) } diff --git a/upub/routes/src/activitypub/tags.rs b/upub/routes/src/activitypub/tags.rs index 415bf04..26dbbb5 100644 --- a/upub/routes/src/activitypub/tags.rs +++ b/upub/routes/src/activitypub/tags.rs @@ -47,6 +47,7 @@ pub async fn page( offset, limit, objects, + true, ) }