Merge pull request #1629 from mattermost/PLT-1369
PLT-1369 send core message
Этот коммит содержится в:
@@ -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()))
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user