From 29cfa2e64fbbfecb5c866e05f863a0c08996fc1b Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Mon, 21 Nov 2016 12:19:21 -0500 Subject: Clear context error on post creation when create_at is set (#4615) --- api/post.go | 1 + 1 file changed, 1 insertion(+) (limited to 'api/post.go') 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) -- cgit v1.2.3-1-g7c22