Fix weekly usage not being displayed correctly in hashtag admin UI (#11524)

Fix percentages in usage breakdown having too many digits

Change trending hashtags to only ask for review if a hashtag enters
the top 3 position in the set, since it's the only items shown in
the default web UI
This commit is contained in:
Eugen Rochko
2019-08-08 23:03:28 +02:00
committed by GitHub
parent 41aac1ba3a
commit 898dacf83e
3 changed files with 4 additions and 3 deletions

View File

@ -71,7 +71,7 @@ module Admin
now = Time.now.utc.beginning_of_day.to_date
(Date.commercial(now.cwyear, now.cweek)..now).map do |date|
date.to_time.utc.beginning_of_day.to_i
date.to_time(:utc).beginning_of_day.to_i
end
end
end