From 8c80cdde38cceb3424b2b1f43eadf7a1aab0c6df Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 27 Sep 2017 11:52:34 -0500 Subject: remove remaining Global() calls (outside of tests) (#7521) --- app/reaction.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/reaction.go') diff --git a/app/reaction.go b/app/reaction.go index 6513fa8b0..debf75f7a 100644 --- a/app/reaction.go +++ b/app/reaction.go @@ -51,7 +51,7 @@ func (a *App) sendReactionEvent(event string, reaction *model.Reaction, post *mo // send out that a reaction has been added/removed message := model.NewWebSocketEvent(event, "", post.ChannelId, "", nil) message.Add("reaction", reaction.ToJson()) - Publish(message) + a.Publish(message) // The post is always modified since the UpdateAt always changes a.InvalidateCacheForChannelPosts(post.ChannelId) @@ -59,5 +59,5 @@ func (a *App) sendReactionEvent(event string, reaction *model.Reaction, post *mo post.UpdateAt = model.GetMillis() umessage := model.NewWebSocketEvent(model.WEBSOCKET_EVENT_POST_EDITED, "", post.ChannelId, "", nil) umessage.Add("post", post.ToJson()) - Publish(umessage) + a.Publish(umessage) } -- cgit v1.2.3-1-g7c22