PLT-6260: Allow empty legal/support links. (#6057)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
787dfc9220
Коммит
9fa4712dd7
@@ -698,7 +698,7 @@ func (o *Config) SetDefaults() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !IsSafeLink(o.SupportSettings.TermsOfServiceLink) {
|
if !IsSafeLink(o.SupportSettings.TermsOfServiceLink) {
|
||||||
o.SupportSettings.TermsOfServiceLink = nil
|
*o.SupportSettings.TermsOfServiceLink = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
if o.SupportSettings.TermsOfServiceLink == nil {
|
if o.SupportSettings.TermsOfServiceLink == nil {
|
||||||
@@ -707,7 +707,7 @@ func (o *Config) SetDefaults() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !IsSafeLink(o.SupportSettings.PrivacyPolicyLink) {
|
if !IsSafeLink(o.SupportSettings.PrivacyPolicyLink) {
|
||||||
o.SupportSettings.PrivacyPolicyLink = nil
|
*o.SupportSettings.PrivacyPolicyLink = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
if o.SupportSettings.PrivacyPolicyLink == nil {
|
if o.SupportSettings.PrivacyPolicyLink == nil {
|
||||||
@@ -716,7 +716,7 @@ func (o *Config) SetDefaults() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !IsSafeLink(o.SupportSettings.AboutLink) {
|
if !IsSafeLink(o.SupportSettings.AboutLink) {
|
||||||
o.SupportSettings.AboutLink = nil
|
*o.SupportSettings.AboutLink = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
if o.SupportSettings.AboutLink == nil {
|
if o.SupportSettings.AboutLink == nil {
|
||||||
@@ -725,7 +725,7 @@ func (o *Config) SetDefaults() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !IsSafeLink(o.SupportSettings.HelpLink) {
|
if !IsSafeLink(o.SupportSettings.HelpLink) {
|
||||||
o.SupportSettings.HelpLink = nil
|
*o.SupportSettings.HelpLink = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
if o.SupportSettings.HelpLink == nil {
|
if o.SupportSettings.HelpLink == nil {
|
||||||
@@ -734,7 +734,7 @@ func (o *Config) SetDefaults() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !IsSafeLink(o.SupportSettings.ReportAProblemLink) {
|
if !IsSafeLink(o.SupportSettings.ReportAProblemLink) {
|
||||||
o.SupportSettings.ReportAProblemLink = nil
|
*o.SupportSettings.ReportAProblemLink = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
if o.SupportSettings.ReportAProblemLink == nil {
|
if o.SupportSettings.ReportAProblemLink == nil {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user