summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-11-21 14:30:08 -0800
committerGitHub <noreply@github.com>2017-11-21 14:30:08 -0800
commitcf9cd6a4b6bea717884269879ee8a3ced475ee8a (patch)
tree058d45787061b66571b3a364c37a8ad6aec8af1f
parent0bc17001c4423844f76798f12e4277916ca8bd4d (diff)
downloadchat-cf9cd6a4b6bea717884269879ee8a3ced475ee8a.tar.gz
chat-cf9cd6a4b6bea717884269879ee8a3ced475ee8a.tar.bz2
chat-cf9cd6a4b6bea717884269879ee8a3ced475ee8a.zip
Fixing missing default for EnablePreviewFeatures (#7887)
-rw-r--r--model/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go
index 5b52767ca..f5e8fe27a 100644
--- a/model/config.go
+++ b/model/config.go
@@ -394,6 +394,10 @@ func (s *ServiceSettings) SetDefaults() {
if s.PostEditTimeLimit == nil {
s.PostEditTimeLimit = NewInt(300)
}
+
+ if s.EnablePreviewFeatures == nil {
+ s.EnablePreviewFeatures = NewBool(true)
+ }
}
type ClusterSettings struct {