Fix here notifications (#5377)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
a2e6553b7f
Коммит
4149e82455
@@ -196,22 +196,18 @@ func SendNotifications(post *model.Post, team *model.Team, channel *model.Channe
|
|||||||
}
|
}
|
||||||
|
|
||||||
if hereNotification {
|
if hereNotification {
|
||||||
if result := <-Srv.Store.Status().GetOnline(); result.Err != nil {
|
statuses := GetAllStatuses()
|
||||||
return nil, result.Err
|
for _, status := range statuses {
|
||||||
} else {
|
if status.UserId == post.UserId {
|
||||||
statuses := result.Data.([]*model.Status)
|
continue
|
||||||
for _, status := range statuses {
|
}
|
||||||
if status.UserId == post.UserId {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
_, profileFound := profileMap[status.UserId]
|
_, profileFound := profileMap[status.UserId]
|
||||||
_, alreadyMentioned := mentionedUserIds[status.UserId]
|
_, alreadyMentioned := mentionedUserIds[status.UserId]
|
||||||
|
|
||||||
if status.Status == model.STATUS_ONLINE && profileFound && !alreadyMentioned {
|
if status.Status == model.STATUS_ONLINE && profileFound && !alreadyMentioned {
|
||||||
mentionedUsersList = append(mentionedUsersList, status.UserId)
|
mentionedUsersList = append(mentionedUsersList, status.UserId)
|
||||||
updateMentionChans = append(updateMentionChans, Srv.Store.Channel().IncrementMentionCount(post.ChannelId, status.UserId))
|
updateMentionChans = append(updateMentionChans, Srv.Store.Channel().IncrementMentionCount(post.ChannelId, status.UserId))
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user