Readd legacy services to statistics.json

This commit is contained in:
Jonne Haß 2015-07-24 10:57:37 +02:00
parent d68b3f02bd
commit c76cf90b62

View file

@ -12,6 +12,7 @@ class StatisticsPresenter < NodeInfoPresenter
base_data.merge(user_counts) base_data.merge(user_counts)
.merge(post_counts) .merge(post_counts)
.merge(comment_counts) .merge(comment_counts)
.merge(legacy_services)
end end
def base_data def base_data
@ -46,4 +47,10 @@ class StatisticsPresenter < NodeInfoPresenter
"local_comments" => local_comments "local_comments" => local_comments
} }
end end
def legacy_services
Configuration::KNOWN_SERVICES.each_with_object({}) {|service, result|
result[service.to_s] = AppConfig.show_service?(service, nil)
}
end
end end