Eugen Rochko
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
9 deletions
-
lib/mastodon/domains_cli.rb
|
|
@ -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 |