Skip to content
This repository has been archived by the owner on May 16, 2019. It is now read-only.

Commit

Permalink
Don't count suspended users in user count (mastodon#9380)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron committed Nov 30, 2018
1 parent cc0c167 commit 58108b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/presenters/instance_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def contact_account
end

def user_count
Rails.cache.fetch('user_count') { User.confirmed.count }
Rails.cache.fetch('user_count') { User.confirmed.joins(:account).merge(Account.without_suspended).count }
end

def status_count
Expand Down

0 comments on commit 58108b4

Please sign in to comment.