From e11b9728269575d0bfc5a3029ff742987cad882d Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 13 May 2024 01:41:21 +0200 Subject: [PATCH] fix: properly clean follow counts --- src/routes/activitypub/user/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/activitypub/user/mod.rs b/src/routes/activitypub/user/mod.rs index 1c94c69..84256ac 100644 --- a/src/routes/activitypub/user/mod.rs +++ b/src/routes/activitypub/user/mod.rs @@ -69,11 +69,11 @@ pub async fn view( .set_followed_by_me(followed_by_me); if !auth.is(&uid) && !cfg.show_followers_count { - user = user.set_audience(apb::Node::Empty); + user = user.set_followers_count(None); } if !auth.is(&uid) && !cfg.show_following_count { - user = user.set_generator(apb::Node::Empty); + user = user.set_following_count(None); } Ok(JsonLD(user.ld_context()))