Skip to content
Snippets Groups Projects
Unverified Commit 59e3a7f8 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix `tootctl domains crawl` with JSON format output crash (#9820)

Fix #9817
parent a4f07bad
No related branches found
No related tags found
No related merge requests found
......@@ -140,15 +140,8 @@ module Mastodon
end
def stats_to_json(stats)
totals.each_key do |domain|
if totals[domain].is_a?(Hash)
totals[domain]['activity'] = stats[domain]
else
totals.delete(domain)
end
end
say(Oj.dump(totals))
stats.compact!
say(Oj.dump(stats))
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment