mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-25 12:34:58 +01:00
Use inclusive range in ActivityTracker#get
(#29413)
This commit is contained in:
parent
df6086d402
commit
d39d625561
@ -24,7 +24,7 @@ class ActivityTracker
|
|||||||
end
|
end
|
||||||
|
|
||||||
def get(start_at, end_at = Time.now.utc)
|
def get(start_at, end_at = Time.now.utc)
|
||||||
(start_at.to_date...end_at.to_date).map do |date|
|
(start_at.to_date..end_at.to_date).map do |date|
|
||||||
key = key_at(date.to_time(:utc))
|
key = key_at(date.to_time(:utc))
|
||||||
|
|
||||||
value = case @type
|
value = case @type
|
||||||
|
Loading…
Reference in New Issue
Block a user