Skip to content

Commit

Permalink
Replacing the broadcast method with the one defined in the feed manager
Browse files Browse the repository at this point in the history
  • Loading branch information
krainboltgreene authored Apr 5, 2017
1 parent 1e96ce3 commit 96ef933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/workers/push_update_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ def perform(timeline, account_id, status_id)
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

0 comments on commit 96ef933

Please sign in to comment.