summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-12-07 09:00:37 -0500
committerChristopher Speller <crspeller@gmail.com>2015-12-07 09:00:37 -0500
commit93b60b9e39b9833c39702ad1ad801f99e9d5ce13 (patch)
tree7f4d3cc60b84cc6bc4011a157e40de93d9d8a3b3 /api
parent2a1788650fdda22afb491f834600a4b9ed7c4714 (diff)
parent25b3770607e47a3973ab4a109a43a455ea466130 (diff)
downloadchat-93b60b9e39b9833c39702ad1ad801f99e9d5ce13.tar.gz
chat-93b60b9e39b9833c39702ad1ad801f99e9d5ce13.tar.bz2
chat-93b60b9e39b9833c39702ad1ad801f99e9d5ce13.zip
Merge pull request #1629 from mattermost/PLT-1369
PLT-1369 send core message
Diffstat (limited to 'api')
-rw-r--r--api/post.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/post.go b/api/post.go
index 40c5efe8c..e1adc1d98 100644
--- a/api/post.go
+++ b/api/post.go
@@ -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()))