0
0
Fork 0

Fix wrong percentages in admin UI for hashtag usage breakdown (#11714)

This commit is contained in:
Eugen Rochko 2019-09-01 19:44:05 +02:00 committed by GitHub
parent d344289431
commit 47584180d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -37,7 +37,8 @@ module Admin
def set_usage_by_domain
@usage_by_domain = @tag.statuses
.where(visibility: :public)
.with_public_visibility
.excluding_silenced_accounts
.where(Status.arel_table[:id].gteq(Mastodon::Snowflake.id_at(Time.now.utc.beginning_of_day)))
.joins(:account)
.group('accounts.domain')