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:
Diffstat (limited to 'app')
-rw-r--r--app/presenters/statistics_presenter.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/presenters/statistics_presenter.rb b/app/presenters/statistics_presenter.rb
index b264fc3af..a3bcb8b32 100644
--- a/app/presenters/statistics_presenter.rb
+++ b/app/presenters/statistics_presenter.rb
@@ -17,8 +17,8 @@ class StatisticsPresenter
if AppConfig.privacy.statistics.comment_counts?
result['local_comments'] = self.local_comments
end
- AppConfig.services.each do |service, options|
- result[service] = AppConfig["services.#{service}.enable"]
+ Configuration::KNOWN_SERVICES.each do |service, options|
+ result[service.to_s] = AppConfig["services.#{service}.enable"]
end
result
@@ -31,5 +31,5 @@ class StatisticsPresenter
def local_comments
Comment.joins(:author).where("owner_id IS NOT null").count
end
-
+
end