app/post: continue to loop in case of an error (#15418)

Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2020-09-11 18:42:01 +03:00
коммит произвёл GitHub
родитель 5be6da2e9a
Коммит 6fd7cb2a80

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

@@ -399,6 +399,7 @@ func (a *App) FillInPostProps(post *model.Post, channel *model.Channel) *model.A
team, err := a.Srv().Store.Team().Get(mentioned.TeamId)
if err != nil {
mlog.Error("Failed to get team of the channel mention", mlog.String("team_id", channel.TeamId), mlog.String("channel_id", channel.Id), mlog.Err(err))
continue
}
channelMentionsProp[mentioned.Name] = map[string]interface{}{
"display_name": mentioned.DisplayName,