diff options
Diffstat (limited to 'api/post.go')
-rw-r--r-- | api/post.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/api/post.go b/api/post.go index db9412e7b..b2b8e3d0e 100644 --- a/api/post.go +++ b/api/post.go @@ -141,7 +141,9 @@ func saveIsPinnedPost(c *Context, w http.ResponseWriter, r *http.Request, isPinn message := model.NewWebSocketEvent(model.WEBSOCKET_EVENT_POST_EDITED, "", rpost.ChannelId, "", nil) message.Add("post", rpost.ToJson()) - go c.App.Publish(message) + c.App.Go(func() { + c.App.Publish(message) + }) c.App.InvalidateCacheForChannelPosts(rpost.ChannelId) |