]> cat aescling's git repositories - mastodon.git/commitdiff
Replacing the broadcast method with the one defined in the feed manager
authorKurtis Rainbolt-Greene <kurtis@rainbolt-greene.online>
Wed, 5 Apr 2017 03:36:03 +0000 (20:36 -0700)
committerGitHub <noreply@github.com>
Wed, 5 Apr 2017 03:36:03 +0000 (20:36 -0700)
app/workers/push_update_worker.rb

index 3d398b5ac379d4b3a71554f3c0cfda0452e3fc83..5b5e9f68a442d2f479461bc6e81322c41f62b969 100644 (file)
@@ -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