MM-17609 Add EnableSVGs setting (#11874)
* MM-17609 Add EnableSVGs setting * MM-17609 Return SVG images in post metadata
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9b61506c7d
Коммит
23ef7d9a62
@@ -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 {
|
||||
|
||||
Ссылка в новой задаче
Block a user