summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
authorDavid Lu <david.lu@hotmail.com>2016-07-25 20:03:15 -0400
committerCorey Hulen <corey@hulen.com>2016-07-25 16:03:15 -0800
commitc56b429e1dee257bac69de1db55cafee01ccd005 (patch)
tree50e8cc442ac6bcc34766bc045f5c8e8b6106b6ad /model
parent426b14d8a9dfbec152dde6f75c5ec3b0a903af92 (diff)
downloadchat-c56b429e1dee257bac69de1db55cafee01ccd005.tar.gz
chat-c56b429e1dee257bac69de1db55cafee01ccd005.tar.bz2
chat-c56b429e1dee257bac69de1db55cafee01ccd005.zip
Removed Legal & Support settings from UI if empty (#3662)
Diffstat (limited to 'model')
-rw-r--r--model/config.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/model/config.go b/model/config.go
index b38179cf1..d7e4cac91 100644
--- a/model/config.go
+++ b/model/config.go
@@ -489,7 +489,7 @@ func (o *Config) SetDefaults() {
if o.SupportSettings.TermsOfServiceLink == nil {
o.SupportSettings.TermsOfServiceLink = new(string)
- *o.SupportSettings.TermsOfServiceLink = "/static/help/terms.html"
+ *o.SupportSettings.TermsOfServiceLink = ""
}
if !IsSafeLink(o.SupportSettings.PrivacyPolicyLink) {
@@ -498,7 +498,7 @@ func (o *Config) SetDefaults() {
if o.SupportSettings.PrivacyPolicyLink == nil {
o.SupportSettings.PrivacyPolicyLink = new(string)
- *o.SupportSettings.PrivacyPolicyLink = "/static/help/privacy.html"
+ *o.SupportSettings.PrivacyPolicyLink = ""
}
if !IsSafeLink(o.SupportSettings.AboutLink) {
@@ -507,7 +507,7 @@ func (o *Config) SetDefaults() {
if o.SupportSettings.AboutLink == nil {
o.SupportSettings.AboutLink = new(string)
- *o.SupportSettings.AboutLink = "/static/help/about.html"
+ *o.SupportSettings.AboutLink = ""
}
if !IsSafeLink(o.SupportSettings.HelpLink) {
@@ -516,7 +516,7 @@ func (o *Config) SetDefaults() {
if o.SupportSettings.HelpLink == nil {
o.SupportSettings.HelpLink = new(string)
- *o.SupportSettings.HelpLink = "/static/help/help.html"
+ *o.SupportSettings.HelpLink = ""
}
if !IsSafeLink(o.SupportSettings.ReportAProblemLink) {
@@ -525,7 +525,7 @@ func (o *Config) SetDefaults() {
if o.SupportSettings.ReportAProblemLink == nil {
o.SupportSettings.ReportAProblemLink = new(string)
- *o.SupportSettings.ReportAProblemLink = "/static/help/report_problem.html"
+ *o.SupportSettings.ReportAProblemLink = ""
}
if o.SupportSettings.SupportEmail == nil {