fix: context and replies and follow___ /page
This commit is contained in:
parent
789fae1eae
commit
01d0e4df85
3 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue