From 9fa4712dd7fb2b06cff5f3d6dd37c2ecfba070c5 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Mon, 10 Apr 2017 17:16:50 +0100 Subject: PLT-6260: Allow empty legal/support links. (#6057) --- model/config.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'model') diff --git a/model/config.go b/model/config.go index ebd26d85d..10d44a0ca 100644 --- a/model/config.go +++ b/model/config.go @@ -698,7 +698,7 @@ func (o *Config) SetDefaults() { } if !IsSafeLink(o.SupportSettings.TermsOfServiceLink) { - o.SupportSettings.TermsOfServiceLink = nil + *o.SupportSettings.TermsOfServiceLink = "" } if o.SupportSettings.TermsOfServiceLink == nil { @@ -707,7 +707,7 @@ func (o *Config) SetDefaults() { } if !IsSafeLink(o.SupportSettings.PrivacyPolicyLink) { - o.SupportSettings.PrivacyPolicyLink = nil + *o.SupportSettings.PrivacyPolicyLink = "" } if o.SupportSettings.PrivacyPolicyLink == nil { @@ -716,7 +716,7 @@ func (o *Config) SetDefaults() { } if !IsSafeLink(o.SupportSettings.AboutLink) { - o.SupportSettings.AboutLink = nil + *o.SupportSettings.AboutLink = "" } if o.SupportSettings.AboutLink == nil { @@ -725,7 +725,7 @@ func (o *Config) SetDefaults() { } if !IsSafeLink(o.SupportSettings.HelpLink) { - o.SupportSettings.HelpLink = nil + *o.SupportSettings.HelpLink = "" } if o.SupportSettings.HelpLink == nil { @@ -734,7 +734,7 @@ func (o *Config) SetDefaults() { } if !IsSafeLink(o.SupportSettings.ReportAProblemLink) { - o.SupportSettings.ReportAProblemLink = nil + *o.SupportSettings.ReportAProblemLink = "" } if o.SupportSettings.ReportAProblemLink == nil { -- cgit v1.2.3-1-g7c22