Fix here notifications (#5377)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
a2e6553b7f
Коммит
4149e82455
@@ -196,10 +196,7 @@ 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
|
|
||||||
} else {
|
|
||||||
statuses := result.Data.([]*model.Status)
|
|
||||||
for _, status := range statuses {
|
for _, status := range statuses {
|
||||||
if status.UserId == post.UserId {
|
if status.UserId == post.UserId {
|
||||||
continue
|
continue
|
||||||
@@ -214,7 +211,6 @@ func SendNotifications(post *model.Post, team *model.Team, channel *model.Channe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Make sure all mention updates are complete to prevent race
|
// Make sure all mention updates are complete to prevent race
|
||||||
// Probably better to batch these DB updates in the future
|
// Probably better to batch these DB updates in the future
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user