Fix #9817
@ -140,15 +140,8 @@ module Mastodon
end
def stats_to_json(stats)
totals.each_key do |domain|
stats.compact!
if totals[domain].is_a?(Hash)
say(Oj.dump(stats))
totals[domain]['activity'] = stats[domain]
else
totals.delete(domain)
say(Oj.dump(totals))