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)
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue