diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-12-01 11:04:24 -0800 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-12-10 09:38:19 -0800 |
commit | 87d7db3438d46dcd7d84a65739287e25bbb3644f (patch) | |
tree | b467f8f8af70c43eb59d9bf0dae86f439de638c1 /utils | |
parent | c6bd44f14a2ae5b63b25cff0b972ba75af6c1bbc (diff) | |
download | chat-87d7db3438d46dcd7d84a65739287e25bbb3644f.tar.gz chat-87d7db3438d46dcd7d84a65739287e25bbb3644f.tar.bz2 chat-87d7db3438d46dcd7d84a65739287e25bbb3644f.zip |
Added legal and support settings to sys console and implemented support for options in app
Diffstat (limited to 'utils')
-rw-r--r-- | utils/config.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/config.go b/utils/config.go index 0b292a2ca..cfe73fa62 100644 --- a/utils/config.go +++ b/utils/config.go @@ -214,6 +214,13 @@ func getClientConfig(c *model.Config) map[string]string { props["ShowEmailAddress"] = strconv.FormatBool(c.PrivacySettings.ShowEmailAddress) + props["TermsOfServiceLink"] = *c.SupportSettings.TermsOfServiceLink + props["PrivacyPolicyLink"] = *c.SupportSettings.PrivacyPolicyLink + props["AboutLink"] = *c.SupportSettings.AboutLink + props["HelpLink"] = *c.SupportSettings.HelpLink + props["ReportAProblemLink"] = *c.SupportSettings.ReportAProblemLink + props["SupportEmail"] = *c.SupportSettings.SupportEmail + props["EnablePublicLink"] = strconv.FormatBool(c.FileSettings.EnablePublicLink) props["ProfileHeight"] = fmt.Sprintf("%v", c.FileSettings.ProfileHeight) props["ProfileWidth"] = fmt.Sprintf("%v", c.FileSettings.ProfileWidth) |