/api/v1/instance/activity returns a JSON where week, statuses and registrations are strings while logins is a number. Also, statuses and registrations default to zero as a number which is incoherent.
In my opinion, week as a string is justified as we should not go beyond 32 bits signed integers and Mastodon instances have to work in 2038. Instance may one day have billions of statuses per week, that's not impossible, so I think statuses should stay a string too.
However keeping these integer defaults and logins as a number is quite strange I think.
PR to follow.
/api/v1/instance/activityreturns a JSON whereweek,statusesandregistrationsare strings whileloginsis a number. Also,statusesandregistrationsdefault to zero as a number which is incoherent.In my opinion,
weekas a string is justified as we should not go beyond 32 bits signed integers and Mastodon instances have to work in 2038. Instance may one day have billions of statuses per week, that's not impossible, so I thinkstatusesshould stay a string too.However keeping these integer defaults and
loginsas a number is quite strange I think.PR to follow.
master(If you're a user, don't worry about this).