about summary refs log tree commit diff
path: root/app/workers/push_update_worker.rb
diff options
context:
space:
mode:
authorKurtis Rainbolt-Greene <kurtis@rainbolt-greene.online>2017-04-04 20:36:03 -0700
committerGitHub <noreply@github.com>2017-04-04 20:36:03 -0700
commit96ef9338208e09cbc52a49a3d7171d877eab3c43 (patch)
treea036697c614d90158d086e3346d2e057d9acf742 /app/workers/push_update_worker.rb
parent1e96ce378e2aa35ed7287a4a88e5165c2ee20101 (diff)
Replacing the broadcast method with the one defined in the feed manager
Diffstat (limited to 'app/workers/push_update_worker.rb')
-rw-r--r--app/workers/push_update_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/push_update_worker.rb b/app/workers/push_update_worker.rb
index 3d398b5ac..5b5e9f68a 100644
--- a/app/workers/push_update_worker.rb
+++ b/app/workers/push_update_worker.rb
@@ -8,6 +8,6 @@ class PushUpdateWorker
     status = Status.find(status_id)
     message = inline_render(account, 'api/v1/statuses/show', status)
 
-    broadcast(account_id, type: 'update', timeline: timeline, message: message)
+    ActionCable.server.broadcast("timeline:#{account_id}", type: 'update', timeline: timeline, message: message)
   end
 end