discourse-follow/assets/javascripts/discourse/connectors/user-profile-secondary/follow-statistics-user.hbs
Osama Sayegh 4c979e70ba FIX: Respect settings that control follow page visibility when showing follow counters (#6)
This commit hides/shows the Followers/Following counts shown on user cards and profiles based on whether the current user can or can't see the followers/following pages under user profile (controlled by the `follow_(following|follower)_visible` site settings).
2021-10-07 20:34:07 +03:00

6 lines
272 B
Handlebars

{{#if model.total_following}}
{{follow-statistic label="user.following.label" total=model.total_following context="profile"}}
{{/if}}
{{#if model.total_followers}}
{{follow-statistic label="user.followers.label" total=model.total_followers context="profile"}}
{{/if}}