Skip to content
This repository has been archived by the owner on Dec 21, 2023. 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 authored Nov 27, 2018
1 parent 43c311b commit 81f96c9
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 81f96c9

Please sign in to comment.