Fixed issue with corrupted custom mentions on username change

Этот коммит содержится в:
Reed Garmsen
2016-02-19 13:17:49 -08:00
родитель 8d807867ac
Коммит 5d4b18605a

Просмотреть файл

@@ -159,7 +159,7 @@ func (us SqlUserStore) Update(user *model.User, allowActiveUpdate bool) StoreCha
nonUsernameKeys = append(nonUsernameKeys, key)
}
}
user.NotifyProps["mention_keys"] = strings.Join(nonUsernameKeys, ",") + user.Username + ",@" + user.Username
user.NotifyProps["mention_keys"] = strings.Join(nonUsernameKeys, ",") + "," + user.Username + ",@" + user.Username
}
if count, err := us.GetMaster().Update(user); err != nil {