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(
ctx.ap_collection_page(
&url!(ctx, "/context/{id}"),
&url!(ctx, "/context/{id}/page"),
offset, limit,
items
.into_iter()

View file

@ -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()

View file

@ -48,7 +48,7 @@ pub async fn page<const OUTGOING: bool>(
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()