Make sure profile is not nil when assigning in sendNotifications (#3395)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
295d265709
Коммит
5f176e4974
@@ -493,7 +493,9 @@ func sendNotifications(c *Context, post *model.Post, team *model.Team, channel *
|
|||||||
// Find out who is a member of the channel, only keep those profiles
|
// Find out who is a member of the channel, only keep those profiles
|
||||||
tempProfileMap := make(map[string]*model.User)
|
tempProfileMap := make(map[string]*model.User)
|
||||||
for _, member := range members {
|
for _, member := range members {
|
||||||
tempProfileMap[member.UserId] = profileMap[member.UserId]
|
if profile, ok := profileMap[member.UserId]; ok {
|
||||||
|
tempProfileMap[member.UserId] = profile
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
profileMap = tempProfileMap
|
profileMap = tempProfileMap
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user