Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider 59e3a7f8 rédigé par Eugen Rochko's avatar Eugen Rochko Validation de GitHub
Parcourir les fichiers

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

Fix #9817
parent a4f07bad
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -140,15 +140,8 @@ module Mastodon ...@@ -140,15 +140,8 @@ module Mastodon
end end
def stats_to_json(stats) 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)
end
end
say(Oj.dump(totals))
end end
end end
end end
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter