diff options
Diffstat (limited to 'api/post.go')
-rw-r--r-- | api/post.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/post.go b/api/post.go index 41cd7564b..db9412e7b 100644 --- a/api/post.go +++ b/api/post.go @@ -141,7 +141,7 @@ 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 app.Publish(message) + go c.App.Publish(message) c.App.InvalidateCacheForChannelPosts(rpost.ChannelId) |