Don't show/count follows/followers for banned/deleted/disabled profile sites

This commit is contained in:
Kyle Drake 2020-02-28 21:55:43 -05:00
parent 38f55a8ec0
commit 1073ed8c2a
4 changed files with 12 additions and 8 deletions

View file

@ -258,7 +258,7 @@
<% end %>
</div>
<div class="col col-50">
<% follow_count = site.follows.count %>
<% follow_count = site.follows_dataset.count %>
<div><strong><%= site.views.format_large_number %></strong> views</div>
<div><strong><%= follow_count.format_large_number %></strong> follower<%= follow_count == 1 ? '' : 's' %></div>
</div>