summaryrefslogtreecommitdiffstats
path: root/mattermost.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-10-02 09:01:50 -0700
committer=Corey Hulen <corey@hulen.com>2015-10-02 09:01:50 -0700
commit3863c3c15e72a278ed439c02b189eba6cccd94ac (patch)
treeef16793aa00a158da78b8e5bac5e001636d1ed6f /mattermost.go
parentb2052de746f8e5f4ca600142fd43b64ceb6c8b84 (diff)
downloadchat-3863c3c15e72a278ed439c02b189eba6cccd94ac.tar.gz
chat-3863c3c15e72a278ed439c02b189eba6cccd94ac.tar.bz2
chat-3863c3c15e72a278ed439c02b189eba6cccd94ac.zip
Adding offical build function
Diffstat (limited to 'mattermost.go')
-rw-r--r--mattermost.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/mattermost.go b/mattermost.go
index de4c4b883..e78e8d04a 100644
--- a/mattermost.go
+++ b/mattermost.go
@@ -78,7 +78,7 @@ func main() {
func diagnosticsJob() {
go func() {
for {
- if utils.Cfg.PrivacySettings.EnableDiagnostic && model.BuildNumber != "_BUILD_NUMBER_" {
+ if utils.Cfg.PrivacySettings.EnableDiagnostic && !model.IsOfficalBuild() {
if result := <-api.Srv.Store.System().Get(); result.Err == nil {
props := result.Data.(model.StringMap)
lastTime, _ := strconv.ParseInt(props["LastDiagnosticTime"], 10, 0)