1
0
Fork 0
forked from alemi/upub

fix: context and replies and follow___ /page

This commit is contained in:
əlemi 2024-04-19 06:57:01 +02:00
parent 789fae1eae
commit 01d0e4df85
Signed by: alemi
GPG key ID: A4895B84D311642C
3 changed files with 3 additions and 3 deletions

View file

@ -51,7 +51,7 @@ pub async fn page(
Ok(JsonLD( Ok(JsonLD(
ctx.ap_collection_page( ctx.ap_collection_page(
&url!(ctx, "/context/{id}"), &url!(ctx, "/context/{id}/page"),
offset, limit, offset, limit,
items items
.into_iter() .into_iter()

View file

@ -51,7 +51,7 @@ pub async fn page(
Ok(JsonLD( Ok(JsonLD(
ctx.ap_collection_page( ctx.ap_collection_page(
&url!(ctx, "/objects/{id}/replies"), &url!(ctx, "/objects/{id}/replies/page"),
offset, limit, offset, limit,
items items
.into_iter() .into_iter()

View file

@ -48,7 +48,7 @@ pub async fn page<const OUTGOING: bool>(
Ok(following) => { Ok(following) => {
Ok(JsonLD( Ok(JsonLD(
ctx.ap_collection_page( ctx.ap_collection_page(
&url!(ctx, "/users/{id}/{follow___}"), &url!(ctx, "/users/{id}/{follow___}/page"),
offset, offset,
limit, limit,
following.into_iter().map(serde_json::Value::String).collect() following.into_iter().map(serde_json::Value::String).collect()