From e26346cf664e2267efbb773d3725eeb1738c1b41 Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 22 Mar 2024 05:33:39 +0100 Subject: [PATCH] fix: followers, following --- src/activitypub/user.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/activitypub/user.rs b/src/activitypub/user.rs index 2c088ac3..6d6e1043 100644 --- a/src/activitypub/user.rs +++ b/src/activitypub/user.rs @@ -61,10 +61,10 @@ pub async fn followers( }); Ok(JsonLD( 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_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() )) }