diff options
author | Chris <ccbrown112@gmail.com> | 2018-02-09 13:56:11 -0600 |
---|---|---|
committer | Christopher Brown <ccbrown112@gmail.com> | 2018-02-09 13:59:17 -0600 |
commit | a4e9499714999d58f26c712df02c014f1facccf7 (patch) | |
tree | 0d7031485ce74b502746d5a9fe2f65ca2c82d38e /utils | |
parent | 9bf23ece6c247fb04a57127260de4608c433daa5 (diff) | |
download | chat-a4e9499714999d58f26c712df02c014f1facccf7.tar.gz chat-a4e9499714999d58f26c712df02c014f1facccf7.tar.bz2 chat-a4e9499714999d58f26c712df02c014f1facccf7.zip |
Add /v4/image api (#8230)
* add image api
* i suppose i should add a test...
* only redirect to image proxy
Diffstat (limited to 'utils')
-rw-r--r-- | utils/config.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/config.go b/utils/config.go index 9e962eef4..87ebee693 100644 --- a/utils/config.go +++ b/utils/config.go @@ -456,6 +456,9 @@ func GenerateClientConfig(c *model.Config, diagnosticId string) map[string]strin props["PluginsEnabled"] = strconv.FormatBool(*c.PluginSettings.Enable) + hasImageProxy := c.ServiceSettings.ImageProxyType != nil && *c.ServiceSettings.ImageProxyType != "" && c.ServiceSettings.ImageProxyURL != nil && *c.ServiceSettings.ImageProxyURL != "" + props["HasImageProxy"] = strconv.FormatBool(hasImageProxy) + if IsLicensed() { License := License() props["ExperimentalTownSquareIsReadOnly"] = strconv.FormatBool(*c.TeamSettings.ExperimentalTownSquareIsReadOnly) |