about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-04-05 13:28:46 +0200
committerEugen Rochko <eugen@zeonfederated.com>2017-04-05 13:28:46 +0200
commit8530f9413b86e0734ed9e0be93f0168a070f9ac8 (patch)
tree33bd8fc2d6854b32289e47b89845a8e096933417
parentf8a5ff95ec4825d47cdf0fb2551dcd058fddab29 (diff)
Replace ActionCable broadcast call with simple redis publish
-rw-r--r--app/lib/feed_manager.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/feed_manager.rb b/app/lib/feed_manager.rb
index 2cca1cefe..88f6f4a46 100644
--- a/app/lib/feed_manager.rb
+++ b/app/lib/feed_manager.rb
@@ -39,7 +39,7 @@ class FeedManager
 
   def broadcast(timeline_id, options = {})
     options[:queued_at] = (Time.now.to_f * 1000.0).to_i
-    ActionCable.server.broadcast("timeline:#{timeline_id}", options)
+    redis.publish("timeline:#{timeline_id}", Oj.dump(options))
   end
 
   def trim(type, account_id)