Merge release branch 'release-1.2'

Этот коммит содержится в:
Christopher Speller
2015-11-16 11:38:25 -05:00
родитель d03b383097 49a459d696
Коммит 48d2f86b90
10 изменённых файлов: 21 добавлений и 14 удалений

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

@@ -229,6 +229,14 @@ func handlePostEventsAndForget(c *Context, post *model.Post, triggerWebhooks boo
func handleWebhookEventsAndForget(c *Context, post *model.Post, team *model.Team, channel *model.Channel, user *model.User) {
go func() {
if !utils.Cfg.ServiceSettings.EnableOutgoingWebhooks {
return
}
if channel.Type != model.CHANNEL_OPEN {
return
}
hchan := Srv.Store.Webhook().GetOutgoingByTeam(c.Session.TeamId)
hooks := []*model.OutgoingWebhook{}