summaryrefslogtreecommitdiffstats
path: root/api/command.go
diff options
context:
space:
mode:
authorDavid Lu <david.lu97@outlook.com>2016-08-22 15:19:29 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-08-22 15:19:29 -0400
commitecb6fd8769df164774662863258b382d42aad9eb (patch)
tree3bae1f0258522b3303ff4e855b40191666632969 /api/command.go
parentffff24e6254494aa1b35354034047b4cf98ef504 (diff)
downloadchat-ecb6fd8769df164774662863258b382d42aad9eb.tar.gz
chat-ecb6fd8769df164774662863258b382d42aad9eb.tar.bz2
chat-ecb6fd8769df164774662863258b382d42aad9eb.zip
Split /shortcuts programmatically (#3850)
Diffstat (limited to 'api/command.go')
-rw-r--r--api/command.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/command.go b/api/command.go
index 45355f092..7e0708a4d 100644
--- a/api/command.go
+++ b/api/command.go
@@ -254,6 +254,7 @@ func handleResponse(c *Context, w http.ResponseWriter, response *model.CommandRe
} else if response.ResponseType == model.COMMAND_RESPONSE_TYPE_EPHEMERAL && response.Text != "" {
post.Message = response.Text
post.CreateAt = model.GetMillis()
+ post.UserId = c.Session.UserId
SendEphemeralPost(
c.TeamId,
c.Session.UserId,