summaryrefslogtreecommitdiffstats
path: root/webapp/client
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-11-21 12:19:21 -0500
committerGitHub <noreply@github.com>2016-11-21 12:19:21 -0500
commit29cfa2e64fbbfecb5c866e05f863a0c08996fc1b (patch)
treece1d499780c3bcb7700eba9864b6687c985bd9e0 /webapp/client
parent5cf040541121bd8a87f7be4811bbb3d0ea671308 (diff)
downloadchat-29cfa2e64fbbfecb5c866e05f863a0c08996fc1b.tar.gz
chat-29cfa2e64fbbfecb5c866e05f863a0c08996fc1b.tar.bz2
chat-29cfa2e64fbbfecb5c866e05f863a0c08996fc1b.zip
Clear context error on post creation when create_at is set (#4615)
Diffstat (limited to 'webapp/client')
-rw-r--r--webapp/client/client.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx
index 90ff75059..538e82a72 100644
--- a/webapp/client/client.jsx
+++ b/webapp/client/client.jsx
@@ -1508,7 +1508,7 @@ export default class Client {
set(this.defaultHeaders).
type('application/json').
accept('application/json').
- send(post).
+ send({...post, create_at: 0}).
end(this.handleResponse.bind(this, 'createPost', success, error));
this.track('api', 'api_posts_create', post.channel_id, 'length', post.message.length);