Readd legacy services to statistics.json
This commit is contained in:
parent
d68b3f02bd
commit
c76cf90b62
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue