forked from cybrespace/mastodon
Cast status_count to integer (#9314)
It is returned as a double because the sum is now over bigint columns Fix #9312
This commit is contained in:
parent
6a65d87f4d
commit
0c666ae5e6
|
@ -22,7 +22,7 @@ class InstancePresenter
|
||||||
end
|
end
|
||||||
|
|
||||||
def status_count
|
def status_count
|
||||||
Rails.cache.fetch('local_status_count') { Account.local.joins(:account_stat).sum('account_stats.statuses_count') }
|
Rails.cache.fetch('local_status_count') { Account.local.joins(:account_stat).sum('account_stats.statuses_count') }.to_i
|
||||||
end
|
end
|
||||||
|
|
||||||
def domain_count
|
def domain_count
|
||||||
|
|
Loading…
Reference in New Issue