fix: properly clean follow counts
This commit is contained in:
parent
917ea19147
commit
e11b972826
1 changed files with 2 additions and 2 deletions
|
@ -69,11 +69,11 @@ pub async fn view(
|
||||||
.set_followed_by_me(followed_by_me);
|
.set_followed_by_me(followed_by_me);
|
||||||
|
|
||||||
if !auth.is(&uid) && !cfg.show_followers_count {
|
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 {
|
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()))
|
Ok(JsonLD(user.ld_context()))
|
||||||
|
|
Loading…
Reference in a new issue