discourse-follow/assets/javascripts/discourse/connectors/user-card-metadata/follow-statistics-user-card.js
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

5 lines
125 B
JavaScript

export default {
shouldRender(_, component) {
return component.siteSettings.follow_show_statistics_on_profile;
},
};