From 6fd7cb2a809747e53e109f7f0081cb45a51eceef Mon Sep 17 00:00:00 2001 From: Ibrahim Serdar Acikgoz Date: Fri, 11 Sep 2020 18:42:01 +0300 Subject: [PATCH] app/post: continue to loop in case of an error (#15418) --- app/post.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/post.go b/app/post.go index 77bf9a19ae..2840f6c946 100644 --- a/app/post.go +++ b/app/post.go @@ -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,