summaryrefslogtreecommitdiffstats
path: root/api/post.go
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 /api/post.go
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 'api/post.go')
-rw-r--r--api/post.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/post.go b/api/post.go
index 69be29134..814d4e671 100644
--- a/api/post.go
+++ b/api/post.go
@@ -134,6 +134,7 @@ func CreatePost(c *Context, post *model.Post, triggerWebhooks bool) (*model.Post
if post.CreateAt != 0 && !HasPermissionToContext(c, model.PERMISSION_MANAGE_SYSTEM) {
post.CreateAt = 0
+ c.Err = nil
}
post.Hashtags, _ = model.ParseHashtags(post.Message)