Commit c76cf90b authored by Jonne Haß's avatar Jonne Haß

Readd legacy services to statistics.json

parent d68b3f02
......@@ -12,6 +12,7 @@ class StatisticsPresenter < NodeInfoPresenter
base_data.merge(user_counts)
.merge(post_counts)
.merge(comment_counts)
.merge(legacy_services)
end
def base_data
......@@ -46,4 +47,10 @@ class StatisticsPresenter < NodeInfoPresenter
"local_comments" => local_comments
}
end
def legacy_services
Configuration::KNOWN_SERVICES.each_with_object({}) {|service, result|
result[service.to_s] = AppConfig.show_service?(service, nil)
}
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment