mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-12-22 05:08:03 +00:00
Represent numbers by strings in instance activity API (#6198)
Fixes #6197.
This commit is contained in:
parent
8d51ce4290
commit
95bd85d9e8
|
@ -21,9 +21,9 @@ class Api::V1::Instances::ActivityController < Api::BaseController
|
||||||
|
|
||||||
weeks << {
|
weeks << {
|
||||||
week: week.to_time.to_i.to_s,
|
week: week.to_time.to_i.to_s,
|
||||||
statuses: Redis.current.get("activity:statuses:local:#{week_id}") || 0,
|
statuses: Redis.current.get("activity:statuses:local:#{week_id}") || '0',
|
||||||
logins: Redis.current.pfcount("activity:logins:#{week_id}"),
|
logins: Redis.current.pfcount("activity:logins:#{week_id}").to_s,
|
||||||
registrations: Redis.current.get("activity:accounts:local:#{week_id}") || 0,
|
registrations: Redis.current.get("activity:accounts:local:#{week_id}") || '0',
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue