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™️
This commit is contained in:
əlemi 2024-11-09 13:33:34 +01:00
parent 5e32959c61
commit 48768b0e1a
Signed by: alemi
GPG key ID: A4895B84D311642C
4 changed files with 5 additions and 3 deletions

View file

@ -119,6 +119,7 @@ pub async fn page<const OUTGOING: bool>(
crate::builders::collection_page( crate::builders::collection_page(
&upub::url!(ctx, "/actors/{id}/{follow___}/page"), &upub::url!(ctx, "/actors/{id}/{follow___}/page"),
offset, limit, offset, limit,
following.into_iter().map(serde_json::Value::String).collect() following.into_iter().map(serde_json::Value::String).collect(),
true
) )
} }

View file

@ -52,6 +52,6 @@ pub async fn page(
.map(|x| x.ap()) .map(|x| x.ap())
.collect(); .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)
} }

View file

@ -51,5 +51,5 @@ pub async fn page(
.map(|item| item.ap()) .map(|item| item.ap())
.collect(); .collect();
crate::builders::collection_page(&id, offset, limit, items) crate::builders::collection_page(&id, offset, limit, items, true)
} }

View file

@ -47,6 +47,7 @@ pub async fn page(
offset, offset,
limit, limit,
objects, objects,
true,
) )
} }