This reverts commit acbbd4c58d.
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
690cbc9fa3
Коммит
ac10bb12a5
@@ -1,8 +1,8 @@
|
||||
module github.com/mattermost/mattermost/server/public
|
||||
|
||||
go 1.23.0
|
||||
go 1.22.0
|
||||
|
||||
toolchain go1.23.6
|
||||
toolchain go1.22.6
|
||||
|
||||
require (
|
||||
github.com/blang/semver/v4 v4.0.0
|
||||
|
||||
@@ -774,7 +774,7 @@ func (c *Client4) DoAPIRequestReader(ctx context.Context, method, url string, da
|
||||
rq.Header.Set(HeaderAuth, c.AuthType+" "+c.AuthToken)
|
||||
}
|
||||
|
||||
if len(c.HTTPHeader) > 0 {
|
||||
if c.HTTPHeader != nil && len(c.HTTPHeader) > 0 {
|
||||
for k, v := range c.HTTPHeader {
|
||||
rq.Header.Set(k, v)
|
||||
}
|
||||
|
||||
@@ -486,7 +486,7 @@ func (u *User) PreSave() *AppError {
|
||||
u.Props = make(map[string]string)
|
||||
}
|
||||
|
||||
if len(u.NotifyProps) == 0 {
|
||||
if u.NotifyProps == nil || len(u.NotifyProps) == 0 {
|
||||
u.SetDefaultNotifications()
|
||||
}
|
||||
|
||||
@@ -536,7 +536,7 @@ func (u *User) PreUpdate() {
|
||||
u.AuthData = nil
|
||||
}
|
||||
|
||||
if len(u.NotifyProps) == 0 {
|
||||
if u.NotifyProps == nil || len(u.NotifyProps) == 0 {
|
||||
u.SetDefaultNotifications()
|
||||
} else if _, ok := u.NotifyProps[MentionKeysNotifyProp]; ok {
|
||||
// Remove any blank mention keys
|
||||
|
||||
@@ -147,8 +147,8 @@ func init() {
|
||||
seen := make(map[string]string)
|
||||
|
||||
for _, version := range versions {
|
||||
major, minor, _ := SplitVersion(version)
|
||||
verStr := fmt.Sprintf("%v.%v.0", major, minor)
|
||||
maj, min, _ := SplitVersion(version)
|
||||
verStr := fmt.Sprintf("%v.%v.0", maj, min)
|
||||
|
||||
if seen[verStr] == "" {
|
||||
versionsWithoutHotFixes = append(versionsWithoutHotFixes, verStr)
|
||||
|
||||
@@ -52,7 +52,7 @@ func (l *testLogger) logf(prefix, format string, args ...interface{}) {
|
||||
measure(l.logContext)
|
||||
out += fmt.Sprintf(" -- %+v", l.logContext)
|
||||
}
|
||||
l.TB.Log(out)
|
||||
l.TB.Logf(out)
|
||||
}
|
||||
|
||||
func (l *testLogger) Debugf(format string, args ...interface{}) { l.logf("DEBUG", format, args...) }
|
||||
|
||||
Ссылка в новой задаче
Block a user