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

Readd legacy services to statistics.json

parent d68b3f02
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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