Send user_count and a better url for your forum with the version check request

This commit is contained in:
Neil Lalonde 2013-05-27 16:30:06 -04:00
parent 20e88f18ee
commit ed1b0ed0f1
1 changed files with 3 additions and 2 deletions

View File

@ -43,9 +43,10 @@ module DiscourseHub
get('/version_check', {
installed_version: Discourse::VERSION::STRING,
forum_title: SiteSetting.title,
forum_domain: Discourse.current_hostname,
forum_url: Discourse.base_url,
contact_email: SiteSetting.contact_email,
topic_count: Topic.listable_topics.count
topic_count: Topic.listable_topics.count,
user_count: User.count
})
end