Merge pull request #1629 from mattermost/PLT-1369

PLT-1369 send core message
Этот коммит содержится в:
Christopher Speller
2015-12-07 09:00:37 -05:00
родитель 2a1788650f 25b3770607
Коммит 93b60b9e39

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

@@ -561,11 +561,12 @@ func sendNotificationsAndForget(c *Context, post *model.Post, team *model.Team,
msg := model.PushNotification{}
msg.Platform = model.PUSH_NOTIFY_APPLE
msg.Message = subjectPage.Render()
msg.Badge = 1
msg.DeviceId = strings.TrimPrefix(session.DeviceId, "apple:")
msg.ServerId = utils.CfgDiagnosticId
msg.Message = profileMap[id].FirstName + " mentioned you in " + channel.DisplayName
httpClient := http.Client{}
request, _ := http.NewRequest("POST", *utils.Cfg.EmailSettings.PushNotificationServer+"/api/v1/send_push", strings.NewReader(msg.ToJson()))