MM-17609 Add EnableSVGs setting (#11874)

* MM-17609 Add EnableSVGs setting

* MM-17609 Return SVG images in post metadata
Этот коммит содержится в:
Harrison Healey
2019-08-14 13:40:40 -04:00
коммит произвёл GitHub
родитель 9b61506c7d
Коммит 23ef7d9a62
5 изменённых файлов: 28 добавлений и 1 удалений

Просмотреть файл

@@ -307,6 +307,7 @@ type ServiceSettings struct {
ExperimentalLdapGroupSync *bool
DisableBotsWhenOwnerIsDeactivated *bool `restricted:"true"`
EnableBotAccountCreation *bool
EnableSVGs *bool
}
func (s *ServiceSettings) SetDefaults(isUpdate bool) {
@@ -667,6 +668,14 @@ func (s *ServiceSettings) SetDefaults(isUpdate bool) {
if s.EnableBotAccountCreation == nil {
s.EnableBotAccountCreation = NewBool(false)
}
if s.EnableSVGs == nil {
if isUpdate {
s.EnableSVGs = NewBool(true)
} else {
s.EnableSVGs = NewBool(false)
}
}
}
type ClusterSettings struct {