fix: properly clean follow counts

This commit is contained in:
əlemi 2024-05-13 01:41:21 +02:00
parent 917ea19147
commit e11b972826
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

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