diff options
-rw-r--r-- | api/post.go | 3 |
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())) |