fix: followers, following

This commit is contained in:
əlemi 2024-03-22 05:33:39 +01:00
parent 80c38dc211
commit e26346cf66
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -61,10 +61,10 @@ pub async fn followers(
}); });
Ok(JsonLD( Ok(JsonLD(
serde_json::Value::new_object() serde_json::Value::new_object()
.set_id(Some(&format!("{}/users/{}/following", ctx.base(), id))) .set_id(Some(&format!("{}/users/{}/followers", ctx.base(), id)))
.set_collection_type(Some(CollectionType::OrderedCollection)) .set_collection_type(Some(CollectionType::OrderedCollection))
.set_total_items(Some(count)) .set_total_items(Some(count))
.set_first(Node::link(format!("{}/users/{}/following?page=true", ctx.base(), id))) .set_first(Node::link(format!("{}/users/{}/followers?page=true", ctx.base(), id)))
.ld_context() .ld_context()
)) ))
} }