Fix wrong percentages in admin UI for hashtag usage breakdown (#11714)
This commit is contained in:
parent
d344289431
commit
47584180d8
2 changed files with 5 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue