summaryrefslogtreecommitdiffstats
path: root/api/post.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-12-15 07:07:35 -0500
committerChristopher Speller <crspeller@gmail.com>2015-12-15 07:07:35 -0500
commitf6ca77b5d104e892ba6dc1a53a93c2ea2c49af73 (patch)
tree8df6c3dd699f661aba16580f1b6f52309e7622e8 /api/post.go
parent697e901f152e083f3c03483784037a679dfcaa04 (diff)
parent253d80c97e91f9a9225bcc7a587d7a1b74f6f7c9 (diff)
downloadchat-f6ca77b5d104e892ba6dc1a53a93c2ea2c49af73.tar.gz
chat-f6ca77b5d104e892ba6dc1a53a93c2ea2c49af73.tar.bz2
chat-f6ca77b5d104e892ba6dc1a53a93c2ea2c49af73.zip
Merge pull request #1726 from mattermost/PLT-1447
PLT-1447 fixing sending name in push notifications
Diffstat (limited to 'api/post.go')
-rw-r--r--api/post.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/post.go b/api/post.go
index b9bd2c052..6c1d4bbd1 100644
--- a/api/post.go
+++ b/api/post.go
@@ -642,9 +642,9 @@ func sendNotificationsAndForget(c *Context, post *model.Post, team *model.Team,
msg.ServerId = utils.CfgDiagnosticId
if channel.Type == model.CHANNEL_DIRECT {
- msg.Message = channelName + " sent you a direct message"
+ msg.Message = senderName + " sent you a direct message"
} else {
- msg.Message = profileMap[id].FirstName + " mentioned you in " + channelName
+ msg.Message = senderName + " mentioned you in " + channelName
}
httpClient := http.Client{}