fix post editing when channel links are present (#7938)

Этот коммит содержится в:
Chris
2017-12-05 13:18:45 -06:00
коммит произвёл Harrison Healey
родитель 36777057f2
Коммит e7725106ed
2 изменённых файлов: 10 добавлений и 1 удалений

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

@@ -207,7 +207,7 @@ func (a *App) FillInPostProps(post *model.Post, channel *model.Channel) *model.A
if len(channelMentions) > 0 {
if channel == nil {
result := <-a.Srv.Store.Channel().GetForPost(post.Id)
if result.Err == nil {
if result.Err != nil {
return model.NewAppError("FillInPostProps", "api.context.invalid_param.app_error", map[string]interface{}{"Name": "post.channel_id"}, result.Err.Error(), http.StatusBadRequest)
}
channel = result.Data.(*model.Channel)