mirror of
https://github.com/discourse/discourse.git
synced 2025-03-28 20:48:53 +08:00
remove all version stats
This commit is contained in:
parent
15c7e01b90
commit
f15d106eb9
@ -741,7 +741,7 @@ en:
|
|||||||
allow_index_in_robots_txt: "Specify in robots.txt that this site is allowed to be indexed by web search engines."
|
allow_index_in_robots_txt: "Specify in robots.txt that this site is allowed to be indexed by web search engines."
|
||||||
email_domains_blacklist: "A list of email domains that users are not allowed to register accounts with. Example: mailinator.com trashmail.net"
|
email_domains_blacklist: "A list of email domains that users are not allowed to register accounts with. Example: mailinator.com trashmail.net"
|
||||||
email_domains_whitelist: "A list of email domains that users MUST register accounts with. WARNING: Users with email domains other than those listed will not be allowed!"
|
email_domains_whitelist: "A list of email domains that users MUST register accounts with. WARNING: Users with email domains other than those listed will not be allowed!"
|
||||||
version_checks: "Ping the Discourse Hub for version updates with basic anonymized stats and show version messages on the /admin dashboard"
|
version_checks: "Ping the Discourse Hub for version updates and show new version messages on the /admin dashboard"
|
||||||
new_version_emails: "Send an email to the contact_email address when a new version of Discourse is available."
|
new_version_emails: "Send an email to the contact_email address when a new version of Discourse is available."
|
||||||
|
|
||||||
port: "DEVELOPER ONLY! WARNING! Use this HTTP port rather than the default of port 80. Leave blank for default of 80."
|
port: "DEVELOPER ONLY! WARNING! Use this HTTP port rather than the default of port 80. Leave blank for default of 80."
|
||||||
|
@ -5,19 +5,7 @@ module DiscourseHub
|
|||||||
|
|
||||||
def self.version_check_payload
|
def self.version_check_payload
|
||||||
{
|
{
|
||||||
installed_version: Discourse::VERSION::STRING,
|
installed_version: Discourse::VERSION::STRING
|
||||||
forum_title: SiteSetting.title,
|
|
||||||
forum_description: SiteSetting.site_description,
|
|
||||||
forum_url: Discourse.base_url,
|
|
||||||
contact_email: SiteSetting.contact_email,
|
|
||||||
topic_count: Topic.listable_topics.count,
|
|
||||||
post_count: Post.count,
|
|
||||||
user_count: User.count,
|
|
||||||
topics_7_days: Topic.listable_topics.where('created_at > ?', 7.days.ago).count,
|
|
||||||
posts_7_days: Post.where('created_at > ?', 7.days.ago).count,
|
|
||||||
users_7_days: User.where('created_at > ?', 7.days.ago).count,
|
|
||||||
login_required: SiteSetting.login_required,
|
|
||||||
locale: SiteSetting.default_locale
|
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user