Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJason Robinson <mail@jasonrobinson.me>2014-10-12 23:39:48 +0400
committerJason Robinson <mail@jasonrobinson.me>2014-10-12 23:41:42 +0400
commit13de3f318e9bee4fc6941230a18d349234b1a1ce (patch)
tree2acac6eda13bfce67f970ce0579fbad268d56bb7 /app
parent720ec1c64a2456f41ac3f5d9b0ec661449db6212 (diff)
parentacc7377e5f3b2b0df39d3d09ca8525ec38911d7e (diff)
Merge pull request #5296 from 'deepy/develop' into develop
Diffstat (limited to 'app')
-rw-r--r--app/presenters/statistics_presenter.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/presenters/statistics_presenter.rb b/app/presenters/statistics_presenter.rb
index a3bcb8b32..f723fc639 100644
--- a/app/presenters/statistics_presenter.rb
+++ b/app/presenters/statistics_presenter.rb
@@ -4,7 +4,8 @@ class StatisticsPresenter
result = {
'name' => AppConfig.settings.pod_name,
'version' => AppConfig.version_string,
- 'registrations_open' => AppConfig.settings.enable_registrations
+ 'registrations_open' => AppConfig.settings.enable_registrations,
+ 'services' => []
}
if AppConfig.privacy.statistics.user_counts?
result['total_users'] = User.count
@@ -17,6 +18,7 @@ class StatisticsPresenter
if AppConfig.privacy.statistics.comment_counts?
result['local_comments'] = self.local_comments
end
+ result["services"] = Configuration::KNOWN_SERVICES.select {|service| AppConfig["services.#{service}.enable"]}.map(&:to_s)
Configuration::KNOWN_SERVICES.each do |service, options|
result[service.to_s] = AppConfig["services.#{service}.enable"]
end