summaryrefslogtreecommitdiffstats
path: root/app/reaction.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/reaction.go')
-rw-r--r--app/reaction.go4
1 files changed, 2 insertions, 2 deletions
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)
}